My favorites | Sign in
Project Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 26: Frog needs proper UTF-8 support
5 people starred this issue and may be notified of changes. Back to list
Status:  Accepted
Owner:  ----
Type-Defect
Priority-Critical
Usability


Sign in to add a comment

Blocking:
issue 74
 
Reported by martijn.niji, Aug 15, 2008
We need to make sure Frog fully supports UTF-8.

What steps will reproduce the problem?
1. Login to Frog backend
2. Create a new page under Home
3. Enter "こんにちは世界!" as a title. ("Hello World!" in Japanese
according to google translate)
4. Publish (and offcourse save) the page

What is the expected output? What do you see instead?

- Expected output is menu item linking to http://www.example.com/こんにちは
世界.html

- Actual outcome is http://www.example.com/

Please use labels and text to provide additional information.

 n/a
Comment 1 by martijn.niji, Aug 15, 2008
Added this as a requirement before we can release 1.0 since we seem to have lots of
"non-ascii users".
Labels: Milestone-Release1.0
Comment 2 by djreimer, Aug 16, 2008
I think this is the same as defect/ issue #24 . Is there a way of linking them?
Comment 3 by martijn.niji, Aug 16, 2008
Not the same, but similar. I'm not sure if there's a way to link them.
Normally when you have "duplicate" issues, you'd keep the original one and close the
newer ones with status duplicate.
Comment 4 by martijn.niji, Sep 23, 2008
Take note of this comment in the forum, especially the code bit:

Hurray! It was caused by an error on my host, effectively ensuring that the backend
pages where served as iso-8859-1 even though they were suppose to be utf-8. So I
added the following to my .htaccess file:

php_value default_charset "UTF-8"

And now everything works, and I can finally start using frog!
Comment 5 by jon.wickstrom, Mar 05, 2009
I just installed frog 0.94 and use SQLite as a DB backend. PHP is version 5.1.6.

I have a problem with scandinavian characters (åäö) showing up as boxes in the 
frontend. In the admin interface everything is showed corectly.

A HEAD on /frog claims it to be UTF-8. A HEAD on /frog/admin claims it to be 
iso-8859-1... If I dump the /frog page to disk it looks like it is iso-8859-1 and 
when the browser finds the scandinavian characters it tries to interpret them as 
UTF-8 which probably result in characters not in my font.

It's *not* the right solution, but I changed the charset in /frog/app/frontend/
classes/Page.php:367 from UTF-8 to iso-8859-1 and now my scandinavian characters 
show correctly. It works for me now...

There clearly is a charset translation problem somewhere...
Comment 6 by jon.wickstrom, Mar 06, 2009
... it was exactly as martijn.niji concluded two post up...

But Frog should not rely on the user specifying the default charset for php 
in .htaccess. Specially as it only applies to the admin interface, the frontend 
outputs UTF-8 regardles of the default php charset...
Comment 7 by martijn.niji, Apr 06, 2009
(No comment was entered for this change.)
Status: Accepted
Owner: ---
Comment 8 by martijn.niji, Jul 31, 2009
(No comment was entered for this change.)
Labels: -Milestone-Release1.0
Sign in to add a comment

Hosted by Google Code