Is there a way to iterate over every character in a given encoding, and print it’s code? Say, UTF8?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
All Unicode characters can be represented in
UTF-nfor all definedn. What are you trying to achieve?If you really want to do something like print all the valid characters in a particular encoding, without needing to know whether the encoding is “single byte” or “multi byte” or whether its size is fixed or not:
Suggestions: Try it out on something small, like
cp1252. Redirect stdout to a file.