Loading...
 

mysql_cleaner

toutf.pl
#!/usr/bin/perl -nw
#
# Written by Laurent Moss
use Encode;

#Remove Microsoft Word shit
#
s/[\x91\x92]/\\'/g;
s/[\x96\x97]/-/g;
s/\x9C/oe/g;
s/\x8C/OE/g;

#Change encoding
Encode::from_to($_, 'iso-8859-1', 'utf8');
print;
Note: I used this script when upgrading old mysql3 tikis to more recent databases. MS Word special characters like the curly bracket could be replaced by a question mark (?)

Page last modified on Monday 23 July 2007 14:48:02 GMT-0000

Upcoming Events

No records to display

Why Register?

Register at tiki.org and you'll be able to use the account at any *.tiki.org site, thanks to the InterTiki feature. A valid email address is required to receive site notifications and occasional newsletters. You can opt out of these items at any time.