linux - utf-8 file displays doubled characters -


a generated utf-8 file displays in terminal: alt text

but not in firefox or gedit: alt text

it looks characters doubled weird ones?

the file: http://maestric.com/shared/other/2004_10_14.txt

any idea on wrong it?

it seems utf-16. sure locale , terminal in utf-8 ?

did try "od" on file, or see in hex viewer? never trust terminal, must @ bytes sure.

eg

# od -c -x 2004_10_14.txt  | head 0000000  \0   h  \0   e  \0   u  \0   r  \0   e  \0      \0   d  \0   e         4800 6500 7500 7200 6500 2000 6400 6500 0000020  \0      \0   d  \0 303 251  \0   b  \0   u  \0   t  \0      \0         2000 6400 c300 00a9 0062 0075 0074 0020 

Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -