SMF Development > Next SMF Discussion
[3.0] Full UTF8 support
Fustrate:
As long as PHP is compiled with multibyte support (which it is by default, if my memory serves correctly) then you just use the multibyte functions instead, such as mb_strlen().
http://www.php.net/manual/en/ref.mbstring.php
spiros:
--- Quote from: AngelinaBelle on November 08, 2011, 08:04:56 PM ---I understand that converting code to work with UTF8 will take some work -- strlen() won't be dependable (depends on the language), etc. How difficult will it be for mod writers to convert their code?
--- End quote ---
Sometimes it is very easy, i.e.
http://www.simplemachines.org/community/index.php?topic=49410.msg2412108;topicseen#msg2412108
Oldiesmann:
Someone posted a simple solution to the strlen issue on the PHP manual - strlen(utf8_decode($string)). We could probably use that as a last resort if mb_strlen and iconv_strlen aren't available.
I don't know anything about iconv so I can't say whether it would be a performance hit or not.
As far as I know, converting the tables to UTF-8 doesn't have any effect on performance.
spiros:
By the way, joomla has gone UTF-8 only since version 1.5.
agridoc:
Going UTF-8 as default: YES
Abandoning ISO/ANSI: Not so sure.
It needs thought and much work. Fantastico caused quite some problems with pseudo-UTF8 installatin in the past. This is a sticky topic in Greek support board (Google translation, not perfect but the problem can be understood)
As spiros noticed many mods don't work well with UTF-8, many mod writers have no experience with UTF-8 and table collations.
No problem for a new installation. A difficult task would be database conversion in upgrades, it's a procedure that must be done with care, prone to problems and possible data loss. Unless convinced otherwise in the future, I believe that it should be a separate process.
Voices such as Daniel Hofverberg 's should not be neglected, although ISO-8859-1 SMF installations are the easiest case, almost no difference with UTF-8.
Heroic declarations as "throw these mods out" is something that many admin's wouldn't like to hear.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version