Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.

charset utf8 or utf-8


Print Track
Upgrade_7.02.07_8.00.22/locale/English/setup.php#L6

Shouldn't $locale['charset'] = "utf8"; not be $locale['charset'] = "utf-8";

See: utf8-or-utf-8

Quote

According to IANA, only "UTF-8" is correct: iana.org/assignments/character-sets/character-sets.xml Giving "UTF8" as charset can lead to serious problems: stackoverflow.com/a/24323842/2733244 – wortwart May 20 '15 at 8:01

3 replies

utf-8 is correct

php example
CodeDownload  
header('Content-Type: text/html; charset=utf-8');


html
CodeDownload  
<meta charset="utf-8">


htaccess
CodeDownload  
AddCharset UTF-8 .php

yeah, https://github.com/php-fusion/PHP-Fusion/commit/986afe561e2d268ec2ddc6e785c1da27799b53b9
like
(my previous reply was lost somehow)
author Wanabo
forumSuspected Bugs and Errors - 8
replies4 posts
viewed225 times
activeLast updated on 4 months ago
You can view all discussion threads in this forum.
You cannot set up a bounty in this discussion thread.
You can start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.
You cannot up or down-vote on the post in this discussion thread.
Users who participated in discussion: Falk, Wanabo, RobiNN