Method parse_param_pike_charset()


Method parse_param_pike_charset

protected type parse_param_pike_charset(string sym, string arg)

Description

Parse the argument for the #embed parameters pike::charset() and/or __pike__::__charset__().

This #embed parameter is used to specify the character encoding for the embedded file. If this is not specified, the default encoding (ie iso-8859-1) will be used.

Some commonly used charsets here are:

  • UCS-2

    16-bit quantities in big-endian byte order.

  • UCS-2le

    16-bit quantities in little-endian byte order.

  • UCS-4

    32-bit quantities in big-endian byte order.

  • UCS-4be

    32-bit quantities in little-endian byte order.

  • UTF-8

    Text in UTF-8.

  • UTF-16

    Text in UTF-16.

  • UTF-16le

    Text in UTF-16le.

See also

#embed