fhackenberger / ktikz

KtikZ provides a nice user interface for making pictures using TikZ.
Other
350 stars 34 forks source link

qtikz corrupts UTF-8 files #3

Closed arnd closed 8 years ago

arnd commented 8 years ago

After loading and saving UTF-8 encoded .tex files (with umlauts) with qtikz 0.10-4 in ubuntu 15.10, the characters are garbled.

arnd@kallisto:~/packages/ktikz$ cat empty.tex 
äüo
arnd@kallisto:~/packages/ktikz$ file empty.tex 
empty.tex: UTF-8 Unicode text

After opening file empty.tex in qtikz and saving it as empty_saved.tex:

arnd@kallisto:~/packages/ktikz$ cat empty_saved.tex 
öäü
arnd@kallisto:~/packages/ktikz$ file empty_saved.tex 
empty_saved.tex: UTF-8 Unicode text

Hexdump of the files:

arnd@kallisto:~/packages/ktikz$ hexdump empty.tex 
0000000 b6c3 a4c3 bcc3 000a                    
0000007
arnd@kallisto:~/packages/ktikz$ hexdump empty_saved.tex 
0000000 83c3 b6c2 83c3 a4c2 83c3 bcc2 000a     
000000d
arnd commented 8 years ago

Seems to be already fixed in current HEAD master. It would be great if a new version could be released.