외부파일에서 특수문자 읽어오기

플래시테크노트 업데이트.

post from Macromedia – Flash TechNote : URL Encoding: Reading special characters from a text file

The example below illustrates how special characters can be retained using URL encoding:
A text file containing the following variable value will read into Flash as ‘Cost= 85′, dropping the + character:

Cost=+85

However, using URL encoding to replace the + character the original text will result in Flash displaying ‘Cost= +85′ correctly:

Cost=%2b85

URL encoded 된 문자열은 unescape() 메써드를 이용하여 원래의 값으로 반환할 수 있다.


About this entry