Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by BitMiller · Dec 03, 2010 at 11:16 AM · textfonttextmesh

How do I make Unity to print accentuated letters?

For example: , , , , , ,

To console and on TextMesh when changing it from a script.

TextMesh accepts and writes these chars in the Inspector with a "ttf" font but skips them when I change the .text property of it from script. Also couldn't "print" these letters to Console.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by Zib Redlektab · Dec 03, 2010 at 02:16 PM

In your text editor (Unitron?), make sure the text encoding is set to Unicode. alt text

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image BitMiller · Dec 03, 2010 at 09:21 PM 0
Share

I can't see the coherence :S I forgot to mention I'm on Windows platform. I don't know if it makes any sense. I'm using Unity's attached script editor and it allows me those chars to write in the source code, just Unity doesn't outputs them from code.

avatar image Zib Redlektab · Dec 04, 2010 at 05:33 AM 0
Share

Well, when I ran into this problem, the text was being encoded with "Western" (as it is in the image above), and I just needed to switch it to Unicode. The accents displayed fine in the source code, but not in-game.

You need to look around in the options or menus of the script editor (Unitron is the editor that comes with Unity for $$anonymous$$ac, I don't know what it is for Windows) for a Text Encoding option.

avatar image
1

Answer by BitMiller · Dec 08, 2010 at 09:13 AM

Huh, I've got it. In UniSciTE (default Unity script editor on Win) choose File->Encoding->UTF-8.

If you do this on a script that already includes these characters it will freeze on the second script file! So save your works before doing this! After you're done and not freezed to death, you'll have to rewrite those characters in the script because they'll be replaced with special little image thingies.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

No one has followed this question yet.

Related Questions

Custom Font works in editor but not in build 2 Answers

How to change text on a TextMesh with a non-dynamic font on iOS? 2 Answers

TextMeshProUGUI Font Disappearing on Low FPS,Unity TextMeshProUGUI Font Disappearing 0 Answers

How to fix TextMeshPro breaking lines and escaping random characters? 0 Answers

Programatically changing Text Mesh Pro font 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges