XFNLNET_CLASS_ENCODING

Character set used to encode/decode data

 

 

 

NSupported in Synergy .NET

The XFNLNET_CLASS_ENCODING setting specifies the default character set used to encode and decode characters when sending data from .NET to Synergy. It can be set for all classes or a single class.

Any of the encodings in the “List of encodings” table in the Microsoft documentation.

By default, xfNetLink .NET uses the ISO-8859-1 character set to encode/decode characters when sending data from .NET to Synergy. This works fine for most use cases, but ISO-8859-1 does not define characters for values in the range 128–159. If you need characters in this range, such as the Euro symbol (€) at 128, you can change the encoding used by xfNetLink .NET to Windows-1252.

For additional information on ISO-8859-1 and Windows-1252, see HTML ISO-8859-1 Reference and HTML Windows-1252 (ANSI) Reference.

CLASS in the environment variable name can be either DEFAULT (which means the setting applies to all classes) or the name of a specific class in your assembly (which means it applies only to that class).

This environment variable can be used with any xfNetLink .NET application. If an application configuration file exists for a .NET Framework application, the value set in the config file will override the corresponding environment variable.

The environment where the client program runs.

xfNetLink .NET

In this example, all classes will use the Windows-1252 encoding so that they have access to the Euro symbol.

set XFNLNET_DEFAULT_ENCODING = Windows-1252