|
From: Philipp K. J. <ja...@ie...> - 2014-10-29 15:51:24
|
[snip] > > > > But what if the file contains string columns - > > do they get interpreted differently, based on > > set encoding? > > Yes and no. > The individual "words" will get read in and stored no matter > what the encoding. But the program needs to know the encoding > in order to operate on them properly. For example: > > set encoding iso_8859_1 # This is wrong > test = "αβγδεζηθ" > print test # This works because the whole > thing is spit out print test[2:2] # This fails because > the encoding is wrong print test[3:4] # As does this > > set encoding utf8 # this fixes it > print test[2:2] > print test [3:4] > > > > And can I generally rely on > > gnuplot to handle multi-byte characters safely > > (that is, recognize them as multibyte and store > > them accordingly)? > > UTF8 - yes > shift-JIS - I think so but I don't use it myself > other - untested > Many thanks, very helpful! |