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

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -