Home : Products : Gossamer Links : Development, Plugins and Globals :

Products: Gossamer Links: Development, Plugins and Globals: Re: [nir] convert charset: Edit Log

Here is the list of edits for this post
Re: [nir] convert charset
Untested - but try:

sub {

use Unicode::MapUTF8 qw(to_utf8 from_utf8 utf8_supported_charset);

my $val = $_[0];
if ($val =~ /[\200-\377]/) {
$val =~ s/([\200-\377]+)/from_utf8({ -string => $1, -charset => 'ISO-8859-1'})/eg;

return $val;


..call with:


(you may have to play around with the ISO-8859-1 bit, to fit your needs - as this is from my DMOZ_Wizard plugin)


Andy (mod)
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!

Last edited by:

Andy: Apr 27, 2009, 7:51 AM

Edit Log: