Answers for "change encoding utf-8 in txt file"

2

force utf-8 encoding python

import codecs # Python standard library
codecs.encode("A strange character","utf-8")
# this would give you the utf-8 encoded bytes
Posted by: Guest on November-12-2021
2

Encoding UTF

String rawString = "Entwickeln Sie mit Vergnügen";
byte[] bytes = rawString.getBytes(StandardCharsets.UTF_8);
Posted by: Guest on May-14-2021

Browse Popular Code Answers by Language