RE: [Flashcoders] ASP and Character encoding in flash

2007-03-29 Thread Karina Steffens
This certainly explains why the browser rendered the code properly in ISO,
when it should have rendered it properly in UTF-8. But the Response.CodePage
= 65001 was the bit that was missing from the asp, which is why it wasn't
sending the strings properly. All seems to be working fine now - thanks
everyone :)

Karina

> -Original Message-
> From: Rákos Attila [mailto:[EMAIL PROTECTED] 
> Sent: 29 March 2007 14:42
> To: Karina Steffens
> Subject: Re: [Flashcoders] ASP and Character encoding in flash
> 
> 
> Flash doesn't care about the encoding given in XML's header, 
> it always treats the content as UTF-8 (even if it doesn't 
> match the real code page). Browsers however take the header 
> into consideration, so if
> UTF-8 is given there, then they treat the content as UTF-8, and if
> ISO-8859-1 is given, then as ISO-8859-1. So, if ISO-8859-1 
> works well in browsers, it means that your text is in 
> ISO-8859-1, which is not suitable for Flash.
> 
> The encoding of the text doesn't depend on the header, it is 
> just for informational purposes for parsers. If you change 
> the header, the text's encoding remains and doesn't change - 
> just parsers will interpret the same byte stream differently.
> 
> So, you have to make sure to output UTF-8 encoded text with 
> your ASP application.
> 
>   Attila
> 
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> 
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training 
> http://www.figleaf.com http://training.figleaf.com
> 

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] ASP and Character encoding in flash

2007-03-29 Thread Karina Steffens
That did the trick!

Thanks a mil :) 

> -Original Message-
> From: Johan Karlsson [mailto:[EMAIL PROTECTED] 
> Sent: 29 March 2007 14:38
> To: flashcoders@chattyfig.figleaf.com
> Subject: SV: [Flashcoders] ASP and Character encoding in flash
> 
> You must set the ASP-charset to utf-8 as well. 
> Add this at the beginning of the ASP file:
> 
> Response.CodePage = 65001 
> 
> 
> /Johan
> 
> --
> -
> I hope somebody can help with this one...
>  
> I'm working on a flash application, where the settings can be 
> dynamically imported from xml files or an asp query that 
> sends out xml. It works fine if it's an xml file saved as 
> UTF-8, both english and with special characters (in this 
> case, swedish), or an asp generated xml with no special 
> characters (==english).
>  
> But when the client is trying to send out asp xml in swedish, 
> the special characters turn into boxes and some xml fields 
> display as undefined, similar to what you get if you save the 
> local xml file as simple text, rather than UTF-8.
>  
> Also, strangely enough, when the query is tested in the 
> browser, IE and FF seem to be having trouble with the asp xml 
> if the encoding at the top of the page is utf-8, but display 
> it fine with  encoding='ISO-8859-1'?>
>  
> My guess is that regardless of the encoding at the top of the 
> page, when the asp xml reaches Flash, it's not UTF-8 but 
> simple text. My question is - can anything be done about it?
>  
> Thanks,
> Karina
>  
>  
> Karina Steffens  |  Neo-Archaic
> new concepts, timeless design
>  <http://www.neo-archaic.net/> www.neo-archaic.net
>  
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> 
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training 
> http://www.figleaf.com http://training.figleaf.com
> 
> -- 
> 
> Meddelandet har kontrollerats av CRW MailScanner och
> 
> inget skadligt innehåll har upptäckts.
> 
> 
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> 
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training 
> http://www.figleaf.com http://training.figleaf.com
> 

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] ASP and Character encoding in flash

2007-03-29 Thread R�kos Attila

Flash doesn't care about the encoding given in XML's header, it always
treats the content as UTF-8 (even if it doesn't match the real code
page). Browsers however take the header into consideration, so if
UTF-8 is given there, then they treat the content as UTF-8, and if
ISO-8859-1 is given, then as ISO-8859-1. So, if ISO-8859-1 works well
in browsers, it means that your text is in ISO-8859-1, which is not
suitable for Flash.

The encoding of the text doesn't depend on the header, it is just for
informational purposes for parsers. If you change the header, the
text's encoding remains and doesn't change - just parsers will
interpret the same byte stream differently.

So, you have to make sure to output UTF-8 encoded text with your ASP
application.

  Attila

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


SV: [Flashcoders] ASP and Character encoding in flash

2007-03-29 Thread Johan Karlsson
You must set the ASP-charset to utf-8 as well. 
Add this at the beginning of the ASP file:

Response.CodePage = 65001 


/Johan

---
I hope somebody can help with this one...
 
I'm working on a flash application, where the settings can be dynamically
imported from xml files or an asp query that sends out xml. It works fine if
it's an xml file saved as UTF-8, both english and with special characters
(in this case, swedish), or an asp generated xml with no special characters
(==english).
 
But when the client is trying to send out asp xml in swedish, the special
characters turn into boxes and some xml fields display as undefined, similar
to what you get if you save the local xml file as simple text, rather than
UTF-8.
 
Also, strangely enough, when the query is tested in the browser, IE and FF
seem to be having trouble with the asp xml if the encoding at the top of the
page is utf-8, but display it fine with 
 
My guess is that regardless of the encoding at the top of the page, when the
asp xml reaches Flash, it's not UTF-8 but simple text. My question is - can
anything be done about it?
 
Thanks,
Karina
 
 
Karina Steffens  |  Neo-Archaic
new concepts, timeless design
  www.neo-archaic.net
 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

-- 

Meddelandet har kontrollerats av CRW MailScanner och

inget skadligt innehåll har upptäckts.


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] ASP and Character encoding in flash

2007-03-29 Thread Lars Schwarz

are you using CDATA tags for the strings?
the question is also where the data is coming from and in which
format it is stored. you maybe need to encode and decode the
data before generating the xml and when the data is saved

Am 29.03.2007 um 14:20 schrieb Karina Steffens:


I hope somebody can help with this one...

I'm working on a flash application, where the settings can be  
dynamically
imported from xml files or an asp query that sends out xml. It  
works fine if
it's an xml file saved as UTF-8, both english and with special  
characters
(in this case, swedish), or an asp generated xml with no special  
characters

(==english).

But when the client is trying to send out asp xml in swedish, the  
special
characters turn into boxes and some xml fields display as  
undefined, similar
to what you get if you save the local xml file as simple text,  
rather than

UTF-8.

Also, strangely enough, when the query is tested in the browser, IE  
and FF
seem to be having trouble with the asp xml if the encoding at the  
top of the

page is utf-8, but display it fine with 

My guess is that regardless of the encoding at the top of the page,  
when the
asp xml reaches Flash, it's not UTF-8 but simple text. My question  
is - can

anything be done about it?

Thanks,
Karina


Karina Steffens  |  Neo-Archaic
new concepts, timeless design
  www.neo-archaic.net

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


bitrocker & typographique
Lars Schwarz
Gottorpstrasse 20
26122 Oldenburg
T +49(0)441 2171 354 0
F +49(0)441 2171 354 2
M [EMAIL PROTECTED]
W www.bitrocker.com
W www.typographique.de




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] ASP and Character encoding in flash

2007-03-29 Thread Karina Steffens
I hope somebody can help with this one...
 
I'm working on a flash application, where the settings can be dynamically
imported from xml files or an asp query that sends out xml. It works fine if
it's an xml file saved as UTF-8, both english and with special characters
(in this case, swedish), or an asp generated xml with no special characters
(==english).
 
But when the client is trying to send out asp xml in swedish, the special
characters turn into boxes and some xml fields display as undefined, similar
to what you get if you save the local xml file as simple text, rather than
UTF-8.
 
Also, strangely enough, when the query is tested in the browser, IE and FF
seem to be having trouble with the asp xml if the encoding at the top of the
page is utf-8, but display it fine with 
 
My guess is that regardless of the encoding at the top of the page, when the
asp xml reaches Flash, it's not UTF-8 but simple text. My question is - can
anything be done about it?
 
Thanks,
Karina
 
 
Karina Steffens  |  Neo-Archaic
new concepts, timeless design
  www.neo-archaic.net
 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com