|
-
Angkor-What?
unicode troubles
Hi all,
I'm importing text thru sendAndLoad from a php file. The PHP output in a browser looks like this:
--------------
&tekst=
THIS+IS+A+TEST+HEADLINE
22/01/2006
%3Cp%3EList+example%3C%2Fp%3E+++%3Cbr%3E+%3CUL%3E+ %3Cbr%3E+%3CLI%3Eassaasas%3C%2FLI%3E+%3Cbr%3E+%3CL I%3Easassa%3C%2FLI%3E+%3Cbr%3E+%3CLI%3Easasas%3C%2 FLI%3E%3C%2FUL%3E+%3Cbr%3E+%3Cp%3E%3Cfont+face%3D% 22Futura+Hv+Bt%22%3EDuis%3C%2Ffont%3E+%3Ci%3Emoles tie%3C%2Fi%3E+%3CU%3Epharetra%3C%2FU%3E+magna.+Mae cenas+non+turpis+ac+risus+scelerisque+hendrerit.+I nteger+ullamcorper.+Mauris+eleifend+tellus+ac+tort or.%3C%2Fp%3E+++%3Cbr%3E+%3Cp%3E%B7%95%C0+%C1+%C2+ %C3%C4+%C5+%C8+%C9+%CA%26nbsp%3B+%CB+%CC+%CD+%CE+% D2+%D3+%D4+%D5+%D6+%D8+%D9+%DA+%DB+%DC+%E0+%E1+%26 nbsp%3B+%E2+%E3+%E4+%E5+%E8+%E9+%EA+%EB+%EC+%ED%26 nbsp%3B+%26nbsp%3B+%EE+%EF+%F2+%F3+%F4+%F5+%F6+%F8 +%F9+%FA+%FB+%FC+%80%3C%2Fp%3E++
Gekke
--------------
And the source code is as followed:
HTML Code:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> &tekst=<p class="title">DIT+IS+EEN+TEST+BERICHTJE</p> <p class="datum">22/01/2006</p> <br> <p class="content">%3Cp%3EList+example%3C%2Fp%3E+++%3Cbr%3E+%3CUL%3E+%3Cbr%3E+%3CLI%3Eassaasas%3C%2FLI%3E+%3Cbr%3E+%3CLI%3Easassa%3C%2FLI%3E+%3Cbr%3E+%3CLI%3Easasas%3C%2FLI%3E%3C%2FUL%3E+%3Cbr%3E+%3Cp%3E%3Cfont+face%3D%22Futura+Hv+Bt%22%3EDuis%3C%2Ffont%3E+%3Ci%3Emolestie%3C%2Fi%3E+%3CU%3Epharetra%3C%2FU%3E+magna.+Maecenas+non+turpis+ac+risus+scelerisque+hendrerit.+Integer+ullamcorper.+Mauris+eleifend+tellus+ac+tortor.%3C%2Fp%3E+++%3Cbr%3E+%3Cp%3E%B7%95%C0+%C1+%C2+%C3%C4+%C5+%C8+%C9+%CA%26nbsp%3B+%CB+%CC+%CD+%CE+%D2+%D3+%D4+%D5+%D6+%D8+%D9+%DA+%DB+%DC+%E0+%E1+%26nbsp%3B+%E2+%E3+%E4+%E5+%E8+%E9+%EA+%EB+%EC+%ED%26nbsp%3B+%26nbsp%3B+%EE+%EF+%F2+%F3+%F4+%F5+%F6+%F8+%F9+%FA+%FB+%FC+%80%3C%2Fp%3E++</p> <br> <p class="user">Gekke</p>
Now Flash does pretty well on this, but it won't show the next characters:
·•À Á Â ÃÄ Å È É Ê Ë Ì Í Î Ò Ó Ô Õ Ö Ø Ù Ú Û Ü * á â ã ä å è é ê ë ì * î ï ò ó ô õ ö ø ù ú û ü €
I thought I was supposed to urlencode everything to make it work but I guess I'm doing something wrong. Can anyone give me a clue what it is I'm doing wrong...
Cheers
MX 2004 Pro - Oops I did it again!!!
SWF, it's a journey... not a destination
-
Angkor-What?
So much to learn....
I found out that
Code:
System.useCodepage = true;
resolves my troubles...
Thanx for looking at my post anyway 
Cheers
MX 2004 Pro - Oops I did it again!!!
SWF, it's a journey... not a destination
-
Angkor-What?
I guess I cheered a bit too early:
http://moock.org/asdg/technotes/againstUseCodePage/
Any ideas on this anyone?
MX 2004 Pro - Oops I did it again!!!
SWF, it's a journey... not a destination
-
Angkor-What?
Found the solution, I was doing;
PHP Code:
print(urlencode($row["flash_content"]));
Then I tried:
PHP Code:
print(utf8_encode($row["flash_content"]));
But I needed:
PHP Code:
print(urlencode(utf8_encode($row["flash_content"])));
Woohoo!
Cheers
MX 2004 Pro - Oops I did it again!!!
SWF, it's a journey... not a destination
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|