Re: [Firebird-devel] String escapes for codepoints

2019-09-25 Thread Kjell Rilbe
Den 2019-09-25 kl. 18:05, skrev Mark Rotteveel: > On 25-9-2019 10:11, Kjell Rilbe wrote: >> The suggested could be used to write characters >> using the literal's encoding directly. E.g. För UTF-8 literal, the >> character Ö could be written as '\xC3\xB6', and in an WIN1252 literal it >> could be

Re: [Firebird-devel] String escapes for codepoints

2019-09-25 Thread Mark Rotteveel
On 25-9-2019 10:11, Kjell Rilbe wrote: The suggested could be used to write characters using the literal's encoding directly. E.g. För UTF-8 literal, the character Ö could be written as '\xC3\xB6', and in an WIN1252 literal it could be written as '\xD6'. Since these kinds of escapes would be a

Re: [Firebird-devel] String escapes for codepoints

2019-09-25 Thread Kjell Rilbe
Den 2019-09-25 kl. 13:45, skrev Dimitry Sibiryakov: > 25.09.2019 11:52, Kjell Rilbe wrote: >> 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,

Re: [Firebird-devel] String escapes for codepoints

2019-09-25 Thread Dimitry Sibiryakov
25.09.2019 11:52, Kjell Rilbe wrote: 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

Re: [Firebird-devel] String escapes for codepoints

2019-09-25 Thread Kjell Rilbe
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

Re: [Firebird-devel] String escapes for codepoints

2019-09-25 Thread 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

Re: [Firebird-devel] String escapes for codepoints

2019-09-25 Thread Kjell Rilbe
Den 2019-09-24 kl. 17:03, skrev Dimitry Sibiryakov: > 24.09.2019 16:27, Kjell Rilbe wrote: >> The built-in function ASCII_CHAR(n) seems to only accept integers 0..255 >> and not have any character set support whatsoever. > >   ASCII (which this function has in name) define only 127 symbols. Yes,