This is the community forum. For a developer response use the Client Area.
Follow us on Facebook, Twitter and YouTube!

Escaped characters and Unicode(utf-8)
#1
Bug 

Various characters are not escaped properly. I've tested this in the demo, but it's correct there. Don't know why. Some characters are: ' / \ "
The first div's style attribute is an example in the code.

Any ideas? Maybe demo version is different from the released version? Could it be this:
Code:
comment text NOT NULL,
?

Unicode interpreted incorrectly(as ASCII?) in current version that I have downloaded, but in the demo, It's fine, seeing as it's not a utf-8 encrypted document. Mine is utf-8.
It encodes â or â� instead of ♞ or &#9822­­;
Maybe add an option to select encoding for the script?

Thank you for your support, Steven.

--Static

I'm giving you three guesses...
Reply
#2

Do you have Magic Quotes enabled on the server? I chose not to deal with Magic Quotes when writing Commentics as it is deprecated in PHP 5.3 and completely removed in PHP 6.0.

Commentics will have a utf-8 option at some point. However I have never written utf-8 pages before so I will need to study about it first. Do you know any good tutorials?

Have you completed the interview?
Reply
#3

No, Magic Quotes is disabled. As for utf-8, it works correctly on the demo page, only the
Code:
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/><!--ASCII-->
Should be
Code:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><!--Unicode-->
Then the browser decodes it properly.

As for a tutorial, I don't know exactly what you need, but this might help you get started:
http://www.ibm.com/developerworks/librar...index.html
http://us2.php.net/manual-lookup.php?pat...de&lang=en

Edit: second link isn't really helpful. php.net is though. A google search is also helpful http://www.google.com/search?client=oper...8&oe=utf-8

I'm giving you three guesses...
Reply


Possibly Related Threads…
Thread / Author Replies Views Last Post

Forum Jump:


Users browsing this thread: 1 Guest(s)