iPXE discussion forum
Accented characters in menu? - Printable Version

+- iPXE discussion forum (https://forum.ipxe.org)
+-- Forum: iPXE user forums (/forumdisplay.php?fid=1)
+--- Forum: General (/forumdisplay.php?fid=2)
+--- Thread: Accented characters in menu? (/showthread.php?tid=7217)



Accented characters in menu? - lem9 - 2014-02-27 19:56

Hi,
is it possible to display accented characters like "é" in the menu title and items?

Regards,
Marc Delisle


RE: Accented characters in menu? - robinsmidsrod - 2014-02-28 08:51

I'm not entirely sure. iPXE uses the BIOS text console, and whatever support it has for text rendering. In general, that means that you need to encode the text using CP437, which according to http://www.kreativekorp.com/charset/encoding.php?file=cp437.kte has é at code E9. Whether or not your BIOS will display characters over the 7-bit barrier you'll just have to try for yourself.


RE: Accented characters in menu? - lem9 - 2014-02-28 15:16

Thanks,
I feel we're getting somewhere, as now the proper accented character is displayed. However the foreground/background colors are not respected. My ultimate goal is to make it displayed over a background picture, but I tried also with the default colors.

The "é" is always displayed as white on black, is there something I can do to fix this?


RE: Accented characters in menu? - robinsmidsrod - 2014-03-02 09:37

I'm assuming you've followed the instructions on http://ipxe.org/cmd/colour and http://ipxe.org/cmd/cpair to define your colors? Take notice that it is "colour" (British English) and not "color" (American English).


RE: Accented characters in menu? - lem9 - 2014-03-03 19:10

(By the way, thanks for iPXE).

Yes I have followed these instructions. I am using this:

console --x 640 --y 480 --picture http://example.com/coin_cegep_640x480.png --left 0 --right 0 --top 0 --bottom 0
colour --rgb 0xffff00 3
colour --rgb 0x006b28 2
colour --rgb 0x00214a 5
cpair --foreground 5 1
menu Selectionner le type de demarrage

My menu title is displayed with the appropriate colours. However when my script generates the text "Sélectionner" instead, I correctly see the "é", but only this character has the wrong colours.


RE: Accented characters in menu? - robinsmidsrod - 2014-03-10 10:51

Quite interesting! This might very well be a bug in either iPXE or your BIOS. Not sure which one. If you could add a screenshot and send a bug-report to the mailing-list then maybe we can figure out which it is.


RE: Accented characters in menu? - lem9 - 2014-03-13 14:39

Ok, I wrote to ipxe-devel@lists.ipxe.org, with a screenshot.


RE: Accented characters in menu? - mcb30 - 2014-03-13 15:27

(2014-03-13 14:39)lem9 Wrote:  Ok, I wrote to ipxe-devel@lists.ipxe.org, with a screenshot.

Should now be fixed: http://git.ipxe.org/ipxe.git/commitdiff/a17ee36.

Michael