J
Jaroslav Jakes
Hi,
please help.
Sounds so simple. We receive textfiles (customer orders) as e-mail
attachment. These textfiles contain a simple structure of orders, like:
custno, itemno, qty, text
Since these textfile are made on different systems, the field "text" causes
some trouble.
Characters like ä, ö, ü are not convertet in each case correctly.
The source code looks like:
- open (streamread, encoding = default, detect encoding = true) textfile
- convert to a new structure
- write (streamwriter) new textfile
What would you suggest? How could we "detect" the encoding of the file in
order to convert the text-field correctly?
Thanks and regards - Jari
please help.
Sounds so simple. We receive textfiles (customer orders) as e-mail
attachment. These textfiles contain a simple structure of orders, like:
custno, itemno, qty, text
Since these textfile are made on different systems, the field "text" causes
some trouble.
Characters like ä, ö, ü are not convertet in each case correctly.
The source code looks like:
- open (streamread, encoding = default, detect encoding = true) textfile
- convert to a new structure
- write (streamwriter) new textfile
What would you suggest? How could we "detect" the encoding of the file in
order to convert the text-field correctly?
Thanks and regards - Jari