Er du tilfreds med indholdet i denne her guide?

Hvis ikke, så vil vi meget gerne høre dine kommentarer.

Skriv dem herunder, så gør vi det bedste, vi kan for at forbedre manualen.

Tak for din kommentar!

Send ny?

Dansk English

SmartWeb Help | API

2.10. Choose character encoding

It is possible to change the character encoding for all textfields in in- and output functions by calling the Solution_SetEncoding function. All envocations performed after thus call will use the selected character encoding.
This can be usefull if you want to work with the data in a certain character encoding. If you want to use the ISO-8859-1 encoding, call

$Client->Solution_SetEncoding(array ('Encoding' => 'ISO-8859-1'));

If you want to use html special characters in stead of for example æ, ø and å, use
$Client->Solution_SetEncoding(array ('Encoding' => 'HTML-ENTITIES'));

Finally to get the characters as UTF-8, use
$Client->Solution_SetEncoding(array ('Encoding' => 'UTF-8'));

We reccomend that you stick to one character encoding throughout the entire process to avoid encoding errors.