The text that an Oracle Commerce Guided Search application displays to its users is stored in memory as char arrays, c-strings, pascal strings, or other data structures. Before the application can display the text, it must convert the text into a format that it can display correctly and legibly. The process of converting the text is known as encoding.

Any process that reads and writes data must both encode and decode it. In particular, data must be encoded or decoded during I/O operations such as the following:

Choosing the right encoding for text can minimize loss of information and ensure that your application renders text correctly and legibly.

Unless you have reason to use other encodings, choose UTF-8 for:

When to Use Encodings Other Than UTF-8

Use encodings other than UTF-8 only for reasons such as the following:

Know the Encoding of Your Source Data

Make sure you know (or can determine) the encoding of all of your source data. Note the following:

You must ensure that search terms are properly encoded before users of your Guided Search application submit them to a form.

Specify encoding (such as UTF-8) for search terms in the following calls to the Presentation API:


Copyright © Legal Notices