Hello!

I have a weired utf-8 problem. I need to submit some niche data via JSON. but 
it is UTF-8. No problem I thought. But something does not work

$this->getResponse()->setHttpHeader('Content-Type','text/html; charset=utf-8');
$this->getResponse()->setHttpHeader("X-JSON", 'äöüÄÖÜäöüÄÖÜ');

and firebug shows me:

X-JSON  ÃEUROöÌÄÖÜÃEUROöÌÄÖÃ

somehow looks ugly. you will notice that now there are more chars. clearly an 
utf 8 issue.

Okay my debugging starts.I put debug code in 
sfWebResponse.sendHttpHeaders()
line 265:
header("X-JSON1: äöüÄÖÜäöüÄÖÜ");

and reload:
X-JSON1 äöüÄÖÜäöüÄÖÜ
X-JSON  ÃEUROöÌÄÖÜÃEUROöÌÄÖÃ

conclusion for me: 
If i do in sfWebRequest the set of UTF 8 chars (from the texteditor hardcoded) 
I get UTF8 chars in the header in the request.
But when using the symfony API putting again the same hardcoded utf-8 chars in 
(yes the files are saved in utf-8) it goes through the parameter holder comes 
out and is no longer UTF-8


Is this a symfony issue or am I just misuing/overlooking something?

 - puzzled -
.: Fabian


_______________________________________________________________
SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-devs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to