vector.com|Contact
Search tips

apple banana
Find rows that contain at least one of the two words.

+apple +juice
Find rows that contain both words.

+apple macintosh
Find rows that contain the word 'apple', but rank rows higher if they also contain 'macintosh'.

+apple -macintosh
Find rows that contain the word 'apple' but not 'macintosh'.

+apple ~macintosh
Find rows that contain the word 'apple', but if the row also contains the word 'macintosh', rate it lower than if row does not. This is "softer" than a search for '+apple -macintosh', for which the presence of 'macintosh' causes the row not to be returned at all.

+apple +(>turnover >strudel)
Find rows that contain the words 'apple' and 'turnover', or 'apple' and 'strudel' (in any order), but rank 'apple turnover' higher than 'apple strudel'.

apple*
Find rows that contain words such as 'apple', 'apples', 'applesauce', or 'applet'.

"some words"
Find rows that contain the exact phrase 'some words' (for example, rows that contain 'some words of wisdom' but not "some noise words").

By continuing to use this site you agree to the use of cookies. For more information and to find out how to change this click here. Accept Cookies
Please enable cookies in your browser for this website.
Search:
Advanced search

How to Work with Different Encodings in CAPL

Last updated: 2018-09-12
Question:
How to convert CAPL files to different encodings
Answer:

If you create a new CAPL file in CANoe, the default Windows code page/encoding of the local PC's operating system is used. The code page represents the set of available characters which usually contains the seven-bit ASCII characters plus additional characters.

The numeric representation of it is automatically written into the first line of the CAPL file when it is created. In the example below encoding CP1252/Windows-1252 is used which corresponds to Western European):

This line does only tell the compiler which encoding is used in the CAPL file. Changing it to another encoding here, e.g. to. /*@!Encoding:65001*/ for UTF-8 does not convert the CAPL file into the new format.

If you want to work with UTF-8, you have to open the file in an external text editor (e.g. Notepad++) and save/convert the file to UTF-8 first.

Afterwards open the file with the CAPL editor and change the first line to
/*@!Encoding:65001*/
After saving it, the compiler recognizes/handles the file as UTF-8 formatted file.

Note:

It is also possible to “limit” the set of available characters to ASCII by using the following encoding:
/*@!Encoding:ASCII*/

 
Article Options
2018-09-12
Views: 1742