Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #2328 > unrolled thread
| Started by | Janis Papanagnou <janis_papanagnou@hotmail.com> |
|---|---|
| First post | 2014-03-02 18:09 +0100 |
| Last post | 2014-03-02 11:11 -0800 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.graphics.apps.gnuplot
UTF-8 encoding Janis Papanagnou <janis_papanagnou@hotmail.com> - 2014-03-02 18:09 +0100
Re: UTF-8 encoding me.kalin@gmail.com - 2014-03-02 11:11 -0800
| From | Janis Papanagnou <janis_papanagnou@hotmail.com> |
|---|---|
| Date | 2014-03-02 18:09 +0100 |
| Subject | UTF-8 encoding |
| Message-ID | <levoku$sct$1@speranza.aioe.org> |
I have problems making UTF-8 characters be printed correctly in a png term. My whole system is configured to process everything in UTF-8. My understanding is that setting "set encoding utf8" in gnuplot should do the trick. Alas, it doesn't. I also tried "set encoding locale" and whatnot, but to no avail. For this too I use a workaround; instruct my editor to create an ISO Latin9 output. And here, once again, I'd of course prefer a correct solution to my hack. What did I miss? (I seem to faintly recall that I didn't have that problem with gnuplot 4.2, but since switching to 4.4 - now I'm using 4.6 - I noticed it.) Forgive me my primitive questions, I am only a casual user of gnuplot, and a lot of things that at first glance gave me the impression to have to work in a simple way; yet I notice a lot of basics that seem to behave strangely. And in the voluminous manual I also couldn't find any enlightening hint.
[toc] | [next] | [standalone]
| From | me.kalin@gmail.com |
|---|---|
| Date | 2014-03-02 11:11 -0800 |
| Message-ID | <c472cc2d-4cb8-41bd-93a9-c17f07a6d097@googlegroups.com> |
| In reply to | #2328 |
On Monday, March 3, 2014 2:09:53 AM UTC+9, Janis Papanagnou wrote: > I have problems making UTF-8 characters be printed correctly in a png term. > My whole system is configured to process everything in UTF-8. > It is not the UTF-8, it is the default font gnuplot is using, just set it explicitly (Even using path to TTF file should work, AFAIR). This works for me: gnuplot -e 'set term png font "Arial Unicode MS"; set xrange [0:2*3.14]; plot sin(x) w l title "Това е синус,ブルガリ語で"' >a.png; display a.png Kalin.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.graphics.apps.gnuplot
csiph-web