Re: Fix UTF Encoding issue
- From
- Ismail Dönmez <ismail@pardus.org.tr>
- Date
- Dec 4, 2007, 08:47 UTC
- Message-ID
- <200712041047.39340.ismail@pardus.org.tr>
- In-Reply-To
- <20071204084412.GA19597@auto.tuwien.ac.at>
Tuesday 04 December 2007 10:44:12 Martin Koegler yazmıştı:
> On Tue, Dec 04, 2007 at 10:33:39AM +0200, Ismail Dönmez wrote: > > Following to_utf8 function works for me : > > For me too (Debian sarge+etch).
Thanks for testing.
Show 13 quoted lines
> > sub to_utf8 {
> > · my $str = shift;
> >
> > if(utf8::valid($str))
> > {
> > utf8::decode($str);
> > }
> > ·
> > return $str;
>
> In the original thread, there was some discussion, that some people
> might want a different fallback endcoding. So mayme you should
> keep the second call to decode for the fallback encoding.Probably, I just wanted to fix this damn UTF-8 bug surfacing over and over =)
Regards, ismail
-- Never learn by your mistakes, if you do you may never dare to try again.