P
peter pilsl
I've a long csv-file that needs to be imported into a sql-database. My
problem now is, that I dont know the charset this file is encoded in and
afterwards I would not know how to convert it to what I need (latin1 for
output and utf8 for storage).
For current transformation unicode<->latin1 the Unicode::String-module is
what I use but the file seems not to be latin1 after all. (It comes from a
mac and I'm working on a linux-machine)
I'm aware of the fact that my problem is not really a perl-problem, but I
use perl to detect and convert the charset, so I hope its ok here.
An example for the text I need to process is available at:
http://www.goldfisch.at/temporary/text.cvs for download (its only one line
with 276 bytes).
thnx a lot for your help,
peter
problem now is, that I dont know the charset this file is encoded in and
afterwards I would not know how to convert it to what I need (latin1 for
output and utf8 for storage).
For current transformation unicode<->latin1 the Unicode::String-module is
what I use but the file seems not to be latin1 after all. (It comes from a
mac and I'm working on a linux-machine)
I'm aware of the fact that my problem is not really a perl-problem, but I
use perl to detect and convert the charset, so I hope its ok here.
An example for the text I need to process is available at:
http://www.goldfisch.at/temporary/text.cvs for download (its only one line
with 276 bytes).
thnx a lot for your help,
peter