objectionary / eo-strings

EO Objects for Manipulations with Strings
MIT License
11 stars 9 forks source link

Is there a way to print `bytes` to console in the way they are? #126

Open maxonfjvipon opened 1 year ago

maxonfjvipon commented 1 year ago

Let's image I have a string "你好, друг!". I want to print bytes of the string to the console E4-BD-A0-E5-A5-BD-2C-20-D0-B4-D1-80-D1-83-D0-B3-21

Is there a way I can do it?

yegor256 commented 1 year ago

@maxonfjvipon I don't think there is :( maybe we can add a new object org.eolang.txt.bytes-as-hex to eo-strings package.

maxonfjvipon commented 1 year ago

@yegor256 I think it's a good idea

yegor256 commented 1 year ago

@maxonfjvipon feel free to implement it and contribute to eo-strings