java string Constant : hex value for a single character - how? -


i need replicate character in unix file, looks this:

cat myfile | xxd -ps | sed 's/[[:xdigit:]]\{2\}/\\x&/g' 

result -> ... \xa4 ...

how can put character, looks hex a4 string literal in java?

i tried this, doesn't work:

public final static string separator = "\ua4"; 

(it's same me if constant string or char...)

thanks help!

strings encoded in utf-16 in java. try this;

 public final static string separator =  "\u00a4" 

Comments

Popular posts from this blog

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -