bugGNU Octave - Bugs: bug #31898, Plotting UTF-8 characters produces...

 
 

bug #31898: Plotting UTF-8 characters produces gibberish

Submitter:  Mattias Põldaru <mahfiaz>
Submitted:  Thu 16 Dec 2010 04:36:39 PM UTC
   
 
Category:  Plotting with gnuplot Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Wont Fix Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 3.2.4 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 27 Mar 2014 06:18:06 AM UTC, comment #5: 

Additionally, using the qt or wxt terminals instead of the x11 terminal works with UTF-8 without any additional configuration.

I've moved the information from comment #2 to the Octave wiki:

http://wiki.octave.org/Enable_UTF-8_text_support_for_Gnuplot%27s_x11_terminal

Please fix or edit as needed. I'm closing this report as I don't think anything further can be done in Octave itself. Either use qt or wxt, or configure the x11 terminal using ~/.Xresources.

Mike Miller <mtmiller>
Group Member
Thu 16 Dec 2010 08:19:10 PM UTC, comment #4: 

Yep. Either have an UTF-8 FAQ entry, either in the "Plotting" section of the info file: each plotting subsystem should be listed, with known limitations and howto.

Regards

Pascal

Pascal Dupuis <cdemills>
Group Member
Thu 16 Dec 2010 08:00:25 PM UTC, comment #3: 

Maybe this information could be added to the documentation somewhere?  But I'm not sure where, since this is really specific to gnuplot, and Octave's plotting will probably eventually not use gnuplot by default.

John W. Eaton <jwe>
Group administrator
Thu 16 Dec 2010 06:07:59 PM UTC, comment #2: 

Thanks a lot, I had stumbled on this article as well, but did not get it to work. Now I got this resolved.

I did put the following two lines into ~/.Xresources file:

gnuplot*font: mbfont:-misc-fixed-medium-r-normal----100-100---iso10646-*
gnuplot*encoding: utf-8

After that I ran this command to reload the configuration:
xrdb -merge ~/.Xresources


Thank you again, sorry for wasting your time.

Mattias Põldaru <mahfiaz>
Thu 16 Dec 2010 05:20:30 PM UTC, comment #1: 

It's not an octave problem. Add this to your .Xresouces:
! see http://statist.wald.intevation.org/utf8.html
!!gnuplot*font: mbfont:-misc-fixed-medium-r-normal-*-*-*-100-100-*-*-iso10646-*
!!gnuplot*font: mbfont:-*-bitstream vera sans-*-*-*-*-*-*-100-100-*-*-*-*
!! !! => gnuplot*font: mbfont:-*-times new roman-medium-r-normal-*-*-*-100-100-*-*--*
!!gnuplot*font: bitstreamverasans-12
!!gnuplot*encoding: utf-8

uncomment one of the lines containing mbfont, and the last one; reload the .Xresources, and voila. Gnuplot with UTF-8 support.

Pascal

Pascal Dupuis <cdemills>
Group Member
Thu 16 Dec 2010 04:36:39 PM UTC, original submission:  

Plotting UTF-8 characters to gnuplot get's these treated as being iso8859-1, which is not right.
http://www.gnuplot.info/faq/faq.html#SECTION00091000000000000000 suggests that in gnuplot this command 'set term x11 font "mbfont:sazanami"' should be used, but there is no way to run this from octave.

Try this from octave:
plot(1)
title("Jõulud möödumas, lapsed hüüdmas, Δt = 21°C")

Mattias Põldaru <mahfiaz>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by burkart
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by cdemills (Posted a comment)
  • -email is unavailable- added by mahfiaz (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-03-27 mtmiller StatusNone Wont Fix
        Open/ClosedOpen Closed
    2012-03-20 burkart Carbon-Copy- Added burkart

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code