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 Offline OP
Addict
OP Offline
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

Re: Changing from iso-8859-1 to UTF-8? [Re: Daryl Fawcett] #263056 08/13/2019 1:04 PM
Joined: Apr 2004
Posts: 1,530
isaac Offline
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,530
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 // 7.7.3 released!
isaac @ id242.com // my forum @ CelicaHobby.com
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 Offline OP
Addict
OP Offline
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,530
isaac Offline
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,530
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 // 7.7.3 released!
isaac @ id242.com // my forum @ CelicaHobby.com
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 Offline OP
Addict
OP Offline
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,530
isaac Offline
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,530
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 // 7.7.3 released!
isaac @ id242.com // my forum @ CelicaHobby.com
Re: Changing from iso-8859-1 to UTF-8? [Re: Daryl Fawcett] #263064 08/13/2019 5:15 PM
Joined: Jun 2006
Posts: 15,844
Gizmo Offline
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 15,844
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,974
Ruben Online Yawn
Online Yawn
Joined: Dec 2003
Posts: 5,974
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,530
isaac Offline
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,530


Current developer of UBB.threads PHP Forum Software // 7.7.3 released!
isaac @ id242.com // my forum @ CelicaHobby.com
Re: Changing from iso-8859-1 to UTF-8? [Re: Daryl Fawcett] #263074 08/15/2019 4:10 PM
Joined: Dec 2003
Posts: 5,974
Ruben Online Yawn
Online Yawn
Joined: Dec 2003
Posts: 5,974
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
Having issue with redirects to UBB classic URLs
by amciotola - 10/16/2019 1:11 AM
Unable to save General settings
by amciotola - 10/13/2019 4:23 AM
I see signature line images, but no avatars
by Morgan - 10/12/2019 2:21 PM
Show PDF
by Geoff - 10/09/2019 1:33 AM
Subscription’s Auto Return URL for PayPal
by Geoff - 09/27/2019 12:10 AM
Who's Online Now
2 registered members (Ruben, JAISP), 71 guests, and 225 spiders.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Amusing Terain Scenics
Amusing Terain Scenics
by isaac, August 19
Sky places
Sky places
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Snapshot build 20190930)