agraham Expert Licensed User Longtime User Jun 1, 2019 #1 Is there any way of getting a list of all the encodings supported by String.GetBytes? I'm sure in times gone by that I used to know how to see this but I can no longer remember and can't find any hints in the forum. I need this as I am presently playing with a thermal printer that has a load of code pages available. Luckily I've solved my immediate problem by using "IBM437" as the parameter to GetBytes, getting there by a process of trial and error and divine inspiration.
Is there any way of getting a list of all the encodings supported by String.GetBytes? I'm sure in times gone by that I used to know how to see this but I can no longer remember and can't find any hints in the forum. I need this as I am presently playing with a thermal printer that has a load of code pages available. Luckily I've solved my immediate problem by using "IBM437" as the parameter to GetBytes, getting there by a process of trial and error and divine inspiration.
Jorge M A Well-Known Member Licensed User Longtime User Jun 1, 2019 #2 I'm not sure if this is what you're looking for. https://docs.oracle.com/javase/8/docs/technotes/guides/intl/encoding.doc.html Attached b4j code for testing, showing results in the console. Greetings! Attachments codes.b4j.zip codes.b4j.zip 1.7 KB · Views: 383 Upvote 0
I'm not sure if this is what you're looking for. https://docs.oracle.com/javase/8/docs/technotes/guides/intl/encoding.doc.html Attached b4j code for testing, showing results in the console. Greetings!
agraham Expert Licensed User Longtime User Jun 1, 2019 #3 Yes, thank you. That looks very promising as I know that at least some of those canonical names already work . Upvote 0
Yes, thank you. That looks very promising as I know that at least some of those canonical names already work .