Den 2019-09-25 kl. 11:35, skrev Dimitry Sibiryakov: > 25.09.2019 10:11, Kjell Rilbe wrote: >> It would be a >> lot more useful with an ability to specify the character codepoint >> inside a string literal, and have that codepoint automatically encoded >> into the string using that string's character set and encoding. >> >> For example, the capital letter Ö with Unicode codepoint U+00D6 would be >> written as for example '\u00d6' inside an UTF-8 string literal > > What does prevent you from putting into a literal the letter itself? > I see no problem to type "ABC АБВ ÖÜË" and so on from keyboard.
Somewhat strange question. Why does e.g. C# support this? Maybe you should ask MS that? Most Unicode characaters are not available on most keyboards. For example, I have a Swedish keyboard. To enter a "Φ" (U+03A6), I will need to find it in Windows character table app (browse, browse, browse...) or find it on the Internet, like I did this time and copy+paste. And even then you just might stumble upon problems with the connection character set having limitations (unless you're using UTF8, which I always do myself unless using ISQL from command line) or your terminal's or editor's character set limitations. Furthermore, there are loads of non printable characters and characters that are difficult to see in a normal text editor, e.g. U+2000..U+200F. I wouldn't want those to appear in an SQL script. I would much prefer a notation where I can see the codepoint. Wouldn't you? Maybe you don't care about readability in your code? Regards, Kjell
<<attachment: kjell_rilbe.vcf>>
Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel