Comments (2)
You're right, that's a bug. It should handle UTF-8 in string literals, but it does not yet.
I was planning on improving the support for unicode by changing the string
type (currently an alias for Array<byte>
), but this is something that could maybe supported by just allowing the UTF-8 representation through.
from virgil.
Thanks.
A workaround is to convert UTF-8 strings to hex byte values with, for example:
$ echo -n "Hello World ©" | od -A n -t x1 | tr -d '\n' | sed 's/ /\\x/g'
\x48\x65\x6c\x6c\x6f\x20\x57\x6f\x72\x6c\x64\x20\xc2\xa9
from virgil.
Related Issues (20)
- `System.puts` at compile time causes compilation to fail on native target (linux) compiler HOT 3
- Unable to run v3c on Ubuntu 20.04.2 on Windows 10 HOT 3
- Value of `null`? HOT 10
- .NET CLR target HOT 1
- Add Windows batch scripts for JAR and WASM target HOT 1
- Supporting `unsafe` as a keyword? HOT 2
- Mutability of `def var` fields in subclasses HOT 3
- Support socket flags/options
- Improve type system and type inference rules HOT 4
- Change system and pointer APIs to pervasively use the `Range` type HOT 2
- Copy/modify initialization expression - `with`?
- Weakening `private` to file scope HOT 4
- Shard testsuite and parallelize
- Support Windows 64 bit
- Most of documentation files seem to be empty HOT 1
- CI Scripts don't report failure properly
- Editors and IDEs support? HOT 4
- Sponsorship HOT 7
- Can it compile to a dll/so? HOT 3
- Please enable Github discussion HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from virgil.