Re: Fix UTF Encoding issue
- From
- Martin Koegler <mkoegler@auto.tuwien.ac.at>
- Date
- Dec 4, 2007, 08:44 UTC
- Message-ID
- <20071204084412.GA19597@auto.tuwien.ac.at>
- In-Reply-To
- <200712041033.39579.ismail@pardus.org.tr>
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).
Show 9 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.
> }
mfg Martin Kögler