2.1   Legacy Encoding Mode

The locale encoding is still available as legacy mode for programs which expect non-ASCII strings to be encoded in the current locale: on western (Windows) systems, e.g., the program still expects tuple_ord to return the CP1252 codes (the Euro sign is '128' instead of '8364' in Unicode mode) and workarounds for Japanese encodings should work without changing the code.

The legacy mode can be enabled by setting the environment variable HALCON_ENCODING to LOCALE or by using set_system:

set_system('filename_encoding', 'locale')

Applications that use the HALCON/C or the HALCON/C++ interface for calling HALCON operators can also set the encoding of the interface independently of the HALCON encoding.

However, the following encoding issues will probably not work as expected in legacy encoding mode:

Independently of the encoding mode, hostnames must be encoded in pure ASCII. Special characters are not supported. To query the hostname which is used, e.g., for socket connections, use:

get_system('hostname', Hostname)