Skip to content

Instantly share code, notes, and snippets.

@AgainPsychoX
Created May 29, 2019 04:46
Show Gist options
  • Save AgainPsychoX/f2b915b32ad42e96f04eb11b5d916a78 to your computer and use it in GitHub Desktop.
Save AgainPsychoX/f2b915b32ad42e96f04eb11b5d916a78 to your computer and use it in GitHub Desktop.
import 'dart:typed_data';
void main() {
String source = 'Błonie';
List<int> list = source.codeUnits;
Uint8List bytes = Uint8List.fromList(list);
String outcome = String.fromCharCodes(bytes);
print(outcome);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment