zoukankan      html  css  js  c++  java
  • Unicode and Flash Player

    Flash Player 6 (and later) supports Unicode text encoding. Any user who installed Flash Player 6 or later can display text in multiple languages, regardless of the language used by the operating system running Flash Player, provided the computer
    are installed the correct characters.
    Flash Player assumes that all external text files associated with an application in Flash Player are encoded with Unicode, unless it is otherwise noted.
    For applications in Flash Macromedia Flash Player 5 or earlier, that were created in Flash MX or earlier, Flash Player 6 (and earlier) displays the text using the traditional code of the operating system running the player.
    For more information about Unicode, visit www.unicode.org.

    Text encoding in Flash Player
    By default, Flash Player 7 requires that all text is encoded with Unicode.
    If the charging document text file or external XML files, the text of these files should be encoded in UTF-8.
    Create these files using the Strings panel or a text editor or HTML, which can save files in Unicode.

    Unicode encoding formats supported by Flash Player
    When reading text data in Flash, Flash Player looks at the first two bytes in the file to detect a BOM (Byte Order Mark, mark byte order), a standard formatting convention used to identify the format of Unicode.
    If no BOM is detected, the text encoding is interpreted as UTF-8 (an 8-bit encoding format). It is advisable to use UTF-8 in their applications.
    If Flash Player detects any of the following BOM, the encoding format of the text is interpreted as follows:

    • If the first byte of the file is OxFE OxFF and the second is, the encoding is interpreted as UTF-16 BE (Big Endian). This encoding is used for systems
      Macintosh.
    • If the first byte of the file is OxFF OxFE and the second is, the encoding is interpreted as UTF-16 LE (Little Endian). This encoding is used for systems
      Windows.

    Most text editors can save files in UTF-16 BE or LE automatically add the BOMs to the files.
    Note: if you set the property system.useCodepagesu true, the text is interpreted using the traditional code of the operating system on which Flash Player is running, is not interpreted as Unicode.

    Encoding in external XML files
    You can not change the encoding of an XML file by changing the encoding tag.
    The Flash Player identifies the encoding of an external XML file using the same rules used for all external files.
    If not detected any BOM at the beginning of the file, it is assumed that the file is encoded in UTF-8.
    If a BOM is found, the file is interpreted as encoded in UTF-16 BE or LE.

  • 相关阅读:
    程序人生2008年(49)
    多种方式实现字符串/无符号数反向输出_栈_递归_头尾指针
    Ebusiness suite system service management ( EBS服务管理)
    文件系统FatFsR0.09a翻译(三):ff.h
    cocurrent request,program,process 并发请求,程序,进程的概念
    Laravel 5.* 执行seeder命令出现错误的解决方法
    Laravel修改配置后一定要清理缓存 "php artisan config:clear"!
    laravel构造函数和中间件执行顺序问题
    Laravel5.3使用学习笔记中间件
    laravel 是怎么做到运行 composer dumpautoload 不清空 classmap 映射关系的呢?
  • 原文地址:https://www.cnblogs.com/sevenyuan/p/1817238.html
Copyright © 2011-2022 走看看