I’m using: SWI-Prolog version version 8.0.3
I want to use an emoji or something for my simple animation but SWI-Prolog states that it is an illegal character. Does someone know how I can use an emoji??
Need help fast thanks!
I’m using: SWI-Prolog version version 8.0.3
I want to use an emoji or something for my simple animation but SWI-Prolog states that it is an illegal character. Does someone know how I can use an emoji??
Need help fast thanks!
I don’t know the answer at present but will try. For this I suspect I will also need to know
I guess you are using MS-Windows? On Windows SWI-Prolog can only represent the first 2^16 (0…65535) Unicode points. If you need to represent them in HTML you can of course using HTML character entities as &#<code>;
I think you can also deal with them as character codes in Prolog lists. You cannot store them in atoms or string objects though. Note that this limit only applies to Windows. On all other platforms this works just fine.
My bad I forgot to share that I’m using Mac which is why this is a difficult problem😅.