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
4
Question by kubas121 · Nov 11, 2013 at 09:43 PM · unity-androidreading dataandroid tab

Textasset with accent (ć,ź etc.) characters won't display on Android

Textasset reads from .txt file encoded in UTF-8. When I play game on unity all the characters are displayed correctly but when I push it to android There are no accent characters (It just ignores them). I opened the .apk and found the actual file with my text in it and noticed that the file is encoded in ANSI. So how to force unity to attach textasset in UTF 8 so android can read accent characters?

Comment
Add comment · Show 2
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 jacobschellenberg · Nov 11, 2013 at 09:53 PM 1
Share

http://forum.unity3d.com/threads/164726-Using-unicode-(UTF-8-UTF-16)-script-in-$$anonymous$$onoDevelop

At the very end he says this:

"O$$anonymous$$ I tried to save again with Notepad++ and this time it works--- In the encoding Tab I needed to CONVERT to UTF-8 not just use UTF-Encoding and Save

anyhow, problem solved..

Dennis"

So perhaps open it up in Notepad++, CONVERT to UTF-8, save.

avatar image kubas121 · Nov 11, 2013 at 10:23 PM 0
Share

Unfortunately this method didnt work for me. Also strings displayed directly from script without using file to read from has the same problem. I tried converting scripts to utf-8 too. Non of the method worked

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by Watorski · Sep 15, 2017 at 09:27 PM

Late replay, but: If you're using notepad to create .txt files make sure you selected UTF-8 encoding in the box close left to the "Save" button. It worked for me :)

PS. It works for every unity project, not only for android

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

18 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Preferences->Android SDK Location error 0 Answers

Build Android Error:IOException: Sharing violation on path 2 Answers

On exiting application My SAMSUNG TAB sph-p100 crashes 0 Answers

Reading NFC Tags on Android 0 Answers

Problems publishing multiple games on android 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