MaxGenius
MaxGenius

Reputation: 23

Flash as3 SWFAddress setValue issue

I have little problem. I'm Polish, and i need polish characters on my site.

When i try to set title, there's no problem, i can set polish characters, and everything is displayed well. But when i try to set Value, there's some mess in my address bar. When i try to make:

"Masaże i SPA" i get:

"Masa%C5%BCe%20i%20SPA".

I've searched on google, but there's no specific solution to my problem.

What i'm trying to do, is send URL to HTML, but it encodes it wrong way.

Is there any solution for that?

Thanks for any help.

Upvotes: 1

Views: 304

Answers (1)

weltraumpirat
weltraumpirat

Reputation: 22604

Why is it surprising to you, that setting the URL value (not the page title, mind you) of your browser's address bar outputs a string that is (properly, by the way) url-encoded?

If you want to set the page title, use setTitle() instead of setValue().

EDIT

See this page to find out why special characters in URLs need to be encoded.

Upvotes: 4

Related Questions