Search Unity

Can you include special characters in GUI labels?

Discussion in 'Immediate Mode GUI (IMGUI)' started by monark, Aug 10, 2008.

  1. monark

    monark

    Joined:
    May 2, 2008
    Posts:
    1,598
  2. NCarter

    NCarter

    Joined:
    Sep 3, 2005
    Posts:
    686
    UTF-8 only works as expected if your text editor saves the file with a byte order mark (BOM) at the start, and Unitron doesn't. Nor do most text editors, for that matter. However, if you use UTF-16 / UCS-2, Unity will correctly interpret any Unicode character in your source files.
     
  3. monark

    monark

    Joined:
    May 2, 2008
    Posts:
    1,598
    Tried that too already, didn't work... for ©
     
  4. monark

    monark

    Joined:
    May 2, 2008
    Posts:
    1,598
    Ok, restarting Unitron got it to work but using UTF-8. If I use UTF-16 when it opens my scripts they all look like japanese...
     
  5. DaveLHOz

    DaveLHOz

    Joined:
    Mar 11, 2015
    Posts:
    8
    The open source editor LibreOffice Writer gives you the option to save UTF-8 with BOM. Just thought I'd put that out there.