Hi,
I'm trying to do a Danish import from DMOZ, and converting it via Unicode::MapUTF8, using this code;
open (WRITEIT,">/usr/home/buhuu.dk/cgi-bin/admin/content.rdf.u8") || die $!;
while (<CONTENT>) {
if (/[\200-\377]/) {
s/([\200-\377]+)/from_utf8({ -string => $1, -charset => 'UTF-8'})/eg;
}
print WRITEIT $_;
}
close(WRITEIT);
close(CONTENT);
However, I can't seem to find a valid charachter encoding type, to convert to :/
TIA for any suggestions (i've checked the w3.org website, and a ton more, but am still no closer to finding the answer
).
TIA
Andy (mod)
andy@ultranerds.co.uk
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
I'm trying to do a Danish import from DMOZ, and converting it via Unicode::MapUTF8, using this code;
Code:
open (CONTENT,"/usr/home/buhuu.dk/cgi-bin/admin/content.rdf.u8.2") || die $!; open (WRITEIT,">/usr/home/buhuu.dk/cgi-bin/admin/content.rdf.u8") || die $!;
while (<CONTENT>) {
if (/[\200-\377]/) {
s/([\200-\377]+)/from_utf8({ -string => $1, -charset => 'UTF-8'})/eg;
}
print WRITEIT $_;
}
close(WRITEIT);
close(CONTENT);
However, I can't seem to find a valid charachter encoding type, to convert to :/
TIA for any suggestions (i've checked the w3.org website, and a ton more, but am still no closer to finding the answer
TIA
Andy (mod)
andy@ultranerds.co.uk
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates

