Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 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
2
Question by Jeroen · Oct 23, 2009 at 09:42 AM · stringwebutf-8

Special characters from Web

I'm having some problems with reading european characters from web (,,,...).I'm trying to load text from a php request, but when I add special characters unity can't read the page and if I encode the text and then decode it with WWW.UnEscapeURL, he doesn't add the special characters, they're just omitted.

my script in which I read it is UTF-8, so if add special characters in my string via code, it works. So I'm guessing the output of UnEscapeUrl isn't UTF-8.

Comment
Add comment · Show 4
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 Lucas Meijer 1 ♦♦ · Oct 23, 2009 at 10:52 AM 0
Share

Could you edit your question to include the code you use in your client, and maybe even some url whose output that code fails to parse?

avatar image Jeroen · Oct 23, 2009 at 02:45 PM 0
Share

We've found the problem, we had to export it in our php as rawurlencoded().

sorry for the inconvenience (we've had this problem for some while)

avatar image runevision ♦♦ · Nov 05, 2009 at 03:06 PM 0
Share

There's no need to apologize - you had a real problem. If you found the problem and a solution that solved your problem, please do write the solution you found as an answer to your original question so that it will appear as answered. Even if the problem wasn't inside Unity, the answer could still be useful to other people.

avatar image Ricardo · Nov 06, 2009 at 02:32 PM 0
Share

Hi Jeroen, it would be good to mark Rune's answer as accepted so that other people know at a glance that's the solution.

1 Reply

· Add your reply
  • Sort: 
avatar image
6
Best Answer

Answer by runevision · Nov 06, 2009 at 09:47 AM

Try encoding the characters in your PHP using rawurlencode() and see if that helps.

For more info on rawurlencode: Page about rawurlencode in PHP Manual

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

What is the maximum byte length of Application.ExternalCall? (and oh yea, it doesn't escape strings correctly) 3 Answers

WWW object has doesnt return the full string 2 Answers

Problems with Russian characters within strings (C#) 3 Answers

How to display khmer font in unity 0 Answers

Using strings to refrence gameobjects in C# 0 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