Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-04-2007, 05:45 PM
Junior Member
 
Join Date: Oct 2007
Posts: 16
Default Zend_Currency, Unicode and Latin-1

My application is using the charset Latin-1 (ISO 8859-1).
I'm using Zend_Currency to output Swedish kronor (SEK).
But toCurrency() returns a Unicode string, containing the non-break space character (U+00A0).
That's a multi-byte character, so it's displayed incorrectly as two characters in Latin-1.
Code:
$currency = new Zend_Currency('sv_SE');
echo $currency->toCurrency(1000));
Output:
Quote:
1Â 000 kr
How to I fix this?
Do I need to use utf8_decode() on every single return?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 12:37 PM.