Licence
Creative Commons License

This work by Stephane KATTOOR is licensed under a Creative Commons Attribution 3.0 Unported License.
Feeling like tipping ?
If you find this blog useful, you might consider sending a few bitcoins to support it : 1BTtsC3beGJ6ysd8DhrXjdo6jVw5WD9mvY
RSS
 
RSS Feed
Follow me !
Tech@Sakana on Facebook
Search this site

Newsletter

Get latest posts by email (No spam, only posts):

Enter your email address:

Delivered by FeedBurner

Categories
Monthly archives
February 2006
M T W T F S S
« Jan   Mar »
 12345
6789101112
13141516171819
20212223242526
2728  
Month: February 2006
Character conversions in Perl - February 8, 2006 by Stephane Kattoor

If you want to convert strings from, say, UTF-8 to Latin1, then you can do this as simply as this :

use Unicode::String qw(utf8);
print utf8(“string in utf-8″)->latin1

Easy ? :D

Who am I ?
Ads