Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 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
1
Question by Sam 1 · Jun 22, 2010 at 12:14 AM · byteinternationalization

Unity multibyte support?

Hello, Does Unity support multibyte strings? I'm going to put some portuguese language into a text file and make the code read it and display it. Looks Unity support UTF-8 but not sure about multibyte. We'd like to support portuguese, japanese, chinese, koreans, and some of hebrew languages. Is there anybody who experiences Unity + Multibyte? If so, how? any sample codes are welcomed. Thanks,

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
5

Answer by Tetrad · Jun 22, 2010 at 12:48 AM

All strings in Unity are Unicode. UTF8 doesn't imply you can't support CJK, etc stuff. It just means that those characters are potentially larger than if you used UTF16.

The hard part about localizing Unity to non-latin-based languages is mainly that Unity uses a bitmap font instead of a font renderer. So to support Unicode your texture sheet will be potentially huge.

You don't really need to do anything special to support it, just make sure to have a font that has those characters. We localized a game we worked on to Thai, Chinese, Japanese... I don't know about right-to-left localization options, though.

If you really want to use UTF16, you can do so using System.Text.Encoding.UTF16.GetString(byte[]) and System.Text.Encoding.UTF16.GetBytes(string)

Edit: here's a screenshot http://yfrog.com/c9screenshot20100611at125p

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
avatar image
0

Answer by binfantino · Jan 29, 2014 at 01:47 AM

Unity allows falling back to the system font for CJK however not Thai. Using sysfont is another alternative. Does anyone know of a way to specify an additional fallback font besides CJK?

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

1 Person is following this question.

avatar image

Related Questions

Localize iOS App name from Unity 1 Answer

if statement isnt working 1 Answer

Writing to files in bytes. 1 Answer

Converting a float to a byte[]? Not working 2 Answers

Coordinate of matching pixel on texture 2 Answers


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