Previous Thread
Next Thread
Print Thread
Hop To
Changing from iso-8859-1 to UTF-8? #263055 08/13/2019 9:58 AM
Joined: Jun 2006
Posts: 626
Daryl Fawcett Online Confused OP
Addict
OP Online Confused
Addict
Joined: Jun 2006
Posts: 626
If I were to change the CHARSET in generic.php from iso-8859-1 to UTF-8 what would happen?

The PHP Info tells me the following:

default_charset UTF-8

Express Hosting
Re: Changing from iso-8859-1 to UTF-8? [Re: Daryl Fawcett] #263056 08/13/2019 1:04 PM
Joined: Apr 2004
Posts: 1,503
isaac Offline
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,503
The language file's CHARSET is what appears in the html page's meta tag
HTML
<meta charset="utf-8">

This specifies the character encoding for the HTML document.

Common values:
UTF-8 - Character encoding for Unicode
ISO-8859-1 - Character encoding for the Latin alphabet

More information
https://www.w3.org/International/questions/qa-html-encoding-declarations

and here:
https://stackoverflow.com/questions/29869743/what-is-meta-charset-utf-8
and
https://stackoverflow.com/questions/16505367/what-happens-when-we-dont-specify-meta-charset-utf-8

Character sets in PHP
Most character sets will display correctly with UTF-8 encoding. If you're using an Asian character set, you may need to select a different encoding standard.


isaac @ id242.com // my forum @ CelicaHobby.com
a current developer of UBB.threads php forum software // 7.7.3 released!
Re: Changing from iso-8859-1 to UTF-8? [Re: Daryl Fawcett] #263057 08/13/2019 2:16 PM
Joined: Jun 2006
Posts: 626
Daryl Fawcett Online Confused OP
Addict
OP Online Confused
Addict
Joined: Jun 2006
Posts: 626
What causes the " to appear as a ? when copying and pasting a "quote" that appears instead as ?quote? ???

Is it a charset problem of some sort???

Re: Changing from iso-8859-1 to UTF-8? [Re: Daryl Fawcett] #263058 08/13/2019 2:26 PM
Joined: Apr 2004
Posts: 1,503
isaac Offline
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,503
Because your content may be stored as one charset type and your web page is telling it to display as a different charset type.

Quote
Google reported that in 2008, UTF-8 (labelled "Unicode") became the most common encoding for HTML files. By 2018, most languages have use of UTF-8 up in the low to high 90%, ... Exceptions include mainly Asian languages with Chinese at 88.0%, Japanese at 86.7% (while Mongolian is at 99.7%) and Breton at 70%.

International Components for Unicode (UTF-8) has historically used UTF-16, and still does only for Java; while for C/C++ UTF-8 is now supported as the "Default Charset", including the correct handling of "illegal UTF-8".


[Linked Image]

source: https://en.wikipedia.org/wiki/UTF-8


isaac @ id242.com // my forum @ CelicaHobby.com
a current developer of UBB.threads php forum software // 7.7.3 released!
Re: Changing from iso-8859-1 to UTF-8? [Re: Daryl Fawcett] #263061 08/13/2019 4:50 PM
Joined: Jun 2006
Posts: 626
Daryl Fawcett Online Confused OP
Addict
OP Online Confused
Addict
Joined: Jun 2006
Posts: 626
But I have always only used English as a language choice.

Re: Changing from iso-8859-1 to UTF-8? [Re: Daryl Fawcett] #263062 08/13/2019 4:54 PM
Joined: Apr 2004
Posts: 1,503
isaac Offline
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,503
You asked about character sets. You may want to google it if you dont understand what a character set it.


isaac @ id242.com // my forum @ CelicaHobby.com
a current developer of UBB.threads php forum software // 7.7.3 released!
Re: Changing from iso-8859-1 to UTF-8? [Re: Daryl Fawcett] #263064 08/13/2019 5:15 PM
Joined: Jun 2006
Posts: 15,851
Gizmo Offline
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 15,851
Some special characters in one character set don't necessarily hold the same value from another; this is especially true for some special characters that may be inserted by non-plain text editors such as Microsoft Word which will change your "'s to curly quotes, among other characters; these discussions have been discussed numerous times on this forum, and discussions can be found via the search tool.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Need to Upgrade?
Forums: A Gardeners Forum Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Re: Changing from iso-8859-1 to UTF-8? [Re: Daryl Fawcett] #263069 08/15/2019 3:49 PM
Joined: Dec 2003
Posts: 5,944
Ruben Offline
Offline
Joined: Dec 2003
Posts: 5,944
There may be a lot of posts about it.
But nowhere have I found how to do it.
Meaning taking a older site with iso-8859-1 tables upgrading to to say 7.7.3 which is set to utf8 in the language file.
They all say they need to update the tables but never say how they did it.
Or if it is needed at all.
Unless somebody can point us somewhere.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Re: Changing from iso-8859-1 to UTF-8? [Re: Daryl Fawcett] #263072 08/15/2019 3:54 PM
Joined: Apr 2004
Posts: 1,503
isaac Offline
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,503


isaac @ id242.com // my forum @ CelicaHobby.com
a current developer of UBB.threads php forum software // 7.7.3 released!
Re: Changing from iso-8859-1 to UTF-8? [Re: Daryl Fawcett] #263074 08/15/2019 4:10 PM
Joined: Dec 2003
Posts: 5,944
Ruben Offline
Offline
Joined: Dec 2003
Posts: 5,944
Perfect
good find.
Jesus 2014


Blue Man Group
There is no such thing as stupid questions. Just stupid answers

Forum Search
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
visual accessibility issues.v7.7.3
by Ruben - 08/21/2019 1:50 PM
Holy grail to fix compatibility bewteen browsers
by Ruben - 08/20/2019 4:25 PM
File Manager and Image Uploads
by Ty Griffin - 08/19/2019 4:48 PM
Minimum Post Character Count
by M4TT - 08/19/2019 1:58 PM
[FIXED for 7.7.4] Strange Merge Issue
by Baldeagle - 08/16/2019 3:37 PM
Who's Online Now
1 registered members (Daryl Fawcett), 40 guests, and 281 spiders.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Photos
Stones
Amusing Terain Scenics
Sky places
Work spaces
Powered by UBB.threads™ PHP Forum Software 7.7.3