« Return to Thread: utf8 support

utf8 support

by Alvaro-16 :: Rate this Message:

Reply to Author | View in Thread

Hi,
I am new user of tedia2sql, because I am spanish speaking have some
problems with inserts created by tedia2sql because don't have utf8
encode support, so I did a patch in perl code.

I don't know anything about perl, but I tryed and it works!

I explain it:

first you have tell perl about encode type to open and save files and
use of encode/decode functions:

use open IO  => ':utf8';
use Encode

I think that value (utf8) must be passed trough command line,
also there is a way to use 'locale' instead of 'utf8'

then when teadia2sql do:
print $iout &createInsertStatements ($compName, $compText);

you have to do

print $iout &createInsertStatements ($compName, decode('utf8,'$compText));

again it must be a value passed by command-line

Well I say again I don't know perl so checkit out please, if you like me
submit
a patch with command-line support and well code please tell me how I
submit that.

Greate work! very useful to me!
thanks

Alvaro


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...

 « Return to Thread: utf8 support