How to escape control characters?
kdevel
kdevel at vogtner.de
Fri Sep 20 10:36:37 UTC 2024
On Thursday, 19 September 2024 at 14:30:08 UTC, Gerardo Cahn
wrote:
> I am using the code listed here.
It should be left to posterity that the code presented in this
thread cannot properly escape
```
"A\xfeZ"
```
```
BV's escape: cast(char) 0x41, cast(char) 0xFE, cast(char) 0x5A
steve's: cast(char) 0x41, cast(char) 0xFE, cast(char) 0x5A
```
nor ("and possibly unicode ones too,", cy March 31, 2016)
```
"A\u00fcZ"
```
```
BV's escape: AüZ
steve's: AüZ
```
More information about the Digitalmars-d-learn
mailing list