Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
Unicode conversion.
I have a tab delimited text file in unicode that I then convert like so.
STRTOFILE(STRCONV( FILETOSTR('c:\temp\text1.txt'), 6 ),'C:\temp\textfixed.txt')
This works fine except for some null fields in the text file.
I have looked at both files with a hex editor and below is where the problem
lies.
text1.txt
Hex Text File
32 00 30 00 30 00 09 00 00 00 09 00 00 00 09 -> 200 TAB NULL TAB NULL
textfixed.txt
Hex Text File
32 30 30 09 00 09 00 09 -> 200 TAB NULL TAB NULL
This used to work fine and the old file had the following when fixed:
Hex Text File
32 30 30 09 20 09 20 09 -> 200 TAB NULL TAB NULL
I need to have the file like it used to be, does anyone have any ideas.
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement