encoding utf8 code example
Example 1: python utf8
# insert in the first line of the file
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# or
#!/usr/bin/env python
# -*- coding: utf-8 -*-
Example 2: Encoding UTF
String rawString = "Entwickeln Sie mit Vergnügen";
byte[] bytes = rawString.getBytes(StandardCharsets.UTF_8);