Previous Thread
Next Thread
Print Thread
Hop To
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: Apr 2004
Posts: 1,945
Likes: 145
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,945
Likes: 145
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.


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
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
UBB.threads Developer
UBB.threads Developer
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.

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


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
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
UBB.threads Developer
UBB.threads Developer
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.


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
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.


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.
Do you need Forum Install or Upgrade Services?
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!
Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
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
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,945
Likes: 145


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
Perfect
good find.
Jesus 2014


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

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
1 members (Havenofsobriety), 522 guests, and 99 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)