文字化けってやっかいですね。
FLASHでサーバとデータをやりとりするときに、いらん要素で文字化けしないように、URLエンコード/デコードするのが良いようです。
サーバ側(PHPなど)で、エンコードしたテキストを
デコード(復元)する場合、
1 |
hoge = unescape( encodeText ); |
です。
※encodeTextに、サーバでurlencodeしたテキストを取得している前提。
逆にFLASHでエンコードするのは、escape()ですね。
———
3ヶ月近く毎日更新してきましたが、何度となく触れているように明日から1週間はハワイに行ってきますので、更新が止まります。ひょっとしたらむこうで撮った写真なんかをアップするかも知れないですが、レギュラー投稿は5/21(月)からになると思います。
2歳ちょい手前の愛娘との機内道中が思いやられる・・・
No comments yet. You should be kind and add one!
By submitting a comment you grant typista a perpetual license to reproduce your words and name/web site in attribution. Inappropriate and irrelevant comments will be removed at an admin’s discretion. Your email is used for verification purposes only, it will never be shared.