#33079 [Opn->Csd]: User comments charset formatting issue

[email protected]
Newsgroups php.webmaster
Message-ID <[email protected]>
 ID:          33079
 Updated by:  [email protected]
 Reported By: mvl22 at mailinator dot com
-Status:      Open
+Status:      Closed
 Bug Type:    Website problem
 PHP Version: Irrelevant
 New Comment:

looks fixed.


Previous Comments:
------------------------------------------------------------------------

[2005-09-20 14:36:21] derernst at gmx dot net

This might be solveable by adding add-charset="UTF-8" to the form tag
of the add user note page; anyway existing notes will not be corrected
by that measure.

------------------------------------------------------------------------

[2005-05-21 13:01:00] [email protected]

Jakub, I think that for an immediate solution, a simple utf8_encode()
call would do on user note output. What do you (or anyone else) think?

------------------------------------------------------------------------

[2005-05-20 16:15:08] [email protected]

PHP manual is in UTF-8 now but user comments are in the single byte
encoding. To fix it:

1. Convert old user notes from iso-8859-1 to utf-8.
2. Output add-note.php page in utf-8 to have new notes in the proper
encoding.

Or: Leave user notes in iso-8859-1 and convert them in the time of
output.

------------------------------------------------------------------------

[2005-05-20 13:29:10] mvl22 at mailinator dot com

Description:
------------
On
http://uk.php.net/flock

text formatting goes screwy from the word "Klaus" onwards in the
comments.

I see ?trong> at the end of that line using IE.

On Firefox the problem doesn't occur, but &#65533;ck appears at the end
of the line.

Looks like the u-umlaut isn't having htmlentities applied.

PS I suggest that the "PHP Version" field in this bug reporting system
be non-mandatory when "Type of bug" = "Documentation problem". I've set
PHP version to 5.0.4 but this is totally irrelevant here: it's a
documentation issue.



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=33079&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.