I just begin to use Dart, and I’m wondering why my first app doesn’t work.
void main() { print("Hello, World!");}
When I run the app, I get this error message:
dart –enable-checked-mode HelloWorld.dart
Dart_NewString expects argument ‘str’ to be valid UTF-8.
I’m new, I follow the tutorial on the website http://www.dartlang.org/docs/editor/getting-started/#code And Hello World doesn’t work -_-
Can some one help me?
I suspect the file is not encoded in UTF-8.
Try changing the file encoding to UTF-8 and retry.