MarcS
(Marcschuetze)
1
Edit: obviously the title should be Problem with numberFormatter
Hi
when I use the number ofrmatter like this
<?php echo Yii::app()->numberFormatter->formatCurrency(10,'EUR') ?>
with the language set to en_en
I’m getting this
€10.00
When I use it like this
<?php echo Yii::app()->numberFormatter->formatCurrency(10,'USD') ?>
with the language set to de_de I’m getting
10,00Â $
any ideas?
thanks for your help
Marc
wei
(Weizhuo)
2
Can you check the charset of your output? In particular, the charset set in the response header. Firebug can be used to examine the response header.
MarcS
(Marcschuetze)
3
The response headers, for whatever reason, does not contain a charset header
here are the full response headers taken from firefox
Date Sun, 09 Aug 2009 10:21:36 GMT
Server Apache/2.2.8 (Win32) DAV/2 mod_ssl/2.2.8 OpenSSL/0.9.8g mod_autoindex_color PHP/5.2.5
X-Powered-By PHP/5.2.5
Set-Cookie PHPSESSID=0b599545529672f3e139e7d3637a9a92; path=/
Expires Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma no-cache
Content-Length 3274
Keep-Alive timeout=5, max=100
Connection Keep-Alive
Content-Type text/html
In the request headers, my browser accepts
Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7