|
|
Joined: Jun 2006
Posts: 626
Addict
|
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
|
|
|
|
Joined: Jun 2006
Posts: 626
Addict
|
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???
|
|
|
|
Joined: Apr 2004
Posts: 1,945 Likes: 145
|
Joined: Apr 2004
Posts: 1,945 Likes: 145 |
Because your content may be stored as one charset type and your web page is telling it to display as a different charset type. 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". source: https://en.wikipedia.org/wiki/UTF-8
|
|
|
|
Joined: Jun 2006
Posts: 626
Addict
|
Addict
Joined: Jun 2006
Posts: 626 |
But I have always only used English as a language choice.
|
|
|
|
Joined: Apr 2004
Posts: 1,945 Likes: 145
|
Joined: Apr 2004
Posts: 1,945 Likes: 145 |
You asked about character sets. You may want to google it if you dont understand what a character set it.
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
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.
|
|
|
|
Joined: Dec 2003
Posts: 6,562 Likes: 78
|
Joined: Dec 2003
Posts: 6,562 Likes: 78 |
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
|
|
|
|
Joined: Apr 2004
Posts: 1,945 Likes: 145
|
Joined: Apr 2004
Posts: 1,945 Likes: 145 |
|
|
|
|
Joined: Dec 2003
Posts: 6,562 Likes: 78
|
Joined: Dec 2003
Posts: 6,562 Likes: 78 |
Perfect good find. Jesus 2014
Blue Man Group There is no such thing as stupid questions. Just stupid answers
|
|
|
Bots
by Outdoorking - 04/13/2024 5:08 PM
|
|
|
|
|
|
|
|
|