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

 
 

bug #31898: Plotting UTF-8 characters produces gibberish

Submitted by:  Mattias Põldaru <mahfiaz>
Submitted on:  Thu 16 Dec 2010 04:36:39 PM UTC  
 
Category: Plotting with gnuplotSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: Wont FixAssigned to: None
Originator Name: Open/Closed: Closed
Release: 3.2.4Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project Administrator
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>
Project 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>
Project 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:

gnuplotfont: 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
!!gnuplotfont: mbfont:-misc-fixed-medium-r-normal----100-100---iso10646-*
!!gnuplotfont: mbfont:--bitstream vera sans-------100-100----
!! !! => gnuplotfont: 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>
Project 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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 27 Mar 2014 06:18:06 AM UTCmtmillerStatusNone=>Wont Fix
      Open/ClosedOpen=>Closed
    Tue 20 Mar 2012 03:43:33 PM UTCburkartCarbon-Copy-=>Added burkart

    Back to the top


    Powered by Savane 3.1-cleanup1