2010年12月28日星期二

Re: [fw-mvc] Zend_Currency Displaying Extra Character

Hey Jurian,

Thanks for the info. The problem is solved. I'm changing the char encoding
of all files to UTF-8. Again very thanks for the fast and accurate reply.

Midhun Girish


On Tue, Dec 28, 2010 at 3:33 PM, Jurian Sluiman
<subscribe@juriansluiman.nl>wrote:

> On Tuesday 28 Dec 2010 10:49:07 Midhun Girish wrote:
> > Dear all,
> >
> > I was trying to use Zend_Currency to format my currency outputs and i
> face
> > this queer problem. An illegal character(Â) gets displayed along with the
> > output of the currency data. The code i used is:
> >
> > $currency = new Zend_Currency('en_IN');
> >
> > > echo $currency->toCurrency(100);
> >
> > And the output is:
> >
> > Rs 100.00
> >
> > I dont know from where the "Â" comes up. I found out that this problem
> > occurs for certain locales only. It is working fine for en_US and some
> > others but output this extra char  in many other. Some one please help.
> >
> > Midhun Girish
>
> Hi Midhun,
>
> This problem is related to your character encoding. To show the characters
> properly, it's the best to work with UTF-8. Your php files, html files and
> output from Apache should be UTF-8 and it should be fine.
>
> I have had the same problem with the nl_NL locale in Zend_Mail, which is
> filed
> under issue no. 5440 in Jira:
> http://framework.zend.com/issues/browse/ZF-5440.
> Converting the mail into UTF-8 and use 8-bit encoding solved the problem in
> Zend_Mail too.
>
> Regards, Jurian
> --
> Jurian Sluiman
> Soflomo - http://soflomo.com
>
>

没有评论: