TwelvestoneFlash

Simplified chinese links


Sign in

  • Waiting for Godot ( 730 k posts )
    Just conversation.
  • Thunder Dome ( 23 k posts )
    Photoshop Tennis and Collabs.
  • Photography ( 5.1 k posts )
    For all you shutterbugs, sh...
  • Flash ( 18 k posts )
    ActionScripting to tweens, ...
  • Front End ( 5.9 k posts )
    general front end design an...
  • Back End ( 9.7 k posts )
    serverside scripting, progr...
  • Projects and Theory ( 12 k posts )
    This forum is for discussio...
  • FAQ ( 269 posts )
    All those nagging questions...
  • Design ( 17 k posts )
    graphics & all aspects of g...
  • Purgatory ( 3.6 k posts )
    12stone Jail, feel free to ...
blacksanta_69
 
2010-12-07

I'm trying to open a link from flash to a google search with simplified Chinese in it. I can trace and display the link in the compiled swf, but if I try to open the link I get http://www.google.ca/search?ie=UTF-8&q=????

The link looks like this:http://www.google.ca/search?ie=UTF-8&q=维基解密

navigateToURL(new URLRequest("http://www.google.ca/search?ie=UTF-8&q=维基解密"), "_blank");

persist
 
2010-12-07

Interesting.

Is the user generating the search term?

You should really be testing on a system where the system code page is actually Chinese.

You'll likely need to do something like this, but i really have no idea. You may need to url encode the entire thing after encoding the var to utf-8. This might be a cross-browser cluster fuck.

navigateToURL(new URLRequest("http://www.google.ca/search?ie=UTF-8&q=+"encodeURIComponent(维基解密)), "_blank");

The most bullet proof solution is javascript and the externalInterface.

blacksanta_69
 
2010-12-08

Thanks persist. The encodeURIComponent worked - I'll see if I can switch it to javascript.

Sorry, you must be a member to post to a conversation. Either log in or sign up to get involved.
TwelvestoneFlash

Simplified chinese links