Page 1 of 1

Natives

Posted: Sat Dec 19, 2020 2:12 pm
by richmond62
Scot.jpeg
-
Um . . .
-
Screenshot 2020-12-19 at 15.08.18.png
-
What does native mean in this context:

"Use the nativeCharToNum function to translate native characters to their 8-bit numerical value."

especially as my native instinct would push me towards using codePointToNum?

The documentation is extremely murky as it does not define native.

Re: Natives

Posted: Sat Dec 19, 2020 2:15 pm
by richmond62
"These functions convert between text and native characters and are replacements
for the deprecated numToChar and charToNum functions.

As the native character sets for each platform have a limited and different repertoire,
these functions should not be used when preservation of Unicode text is desired.
Any characters that cannot be mapped to the native character set are replaced with a question mark character (?).

Unless needed for compatibility reasons, it is recommended that you use the numToCodepoint and
codepointToNum functions instead."

"native character sets" . . . bloody hell: are those entirely congruent on Windows, Macintosh and Linux?

I am jalousing no!