Thursday 15 September 2011

regex - Regular Expression to Replace Escaped Hebrew Characters -


I have a string with Hebrew characters, for example my string contains these hex values:

% D7% 90% d7% 94% d7% 95% d7% 93% d7% a8% d7% 9d

who represent:

× ?? × ?? × ??

Is there a regular expression, can I apply it to this string, can I return the original Hebrew characters?

  string s = URLDecoder.decode ("% d7% 90% d7% 94% d7% 95% d7% 93% d7% a8% d7% 9d ", post-lesson" itemprop = "text" "UTF-8");   

Regex function is unusable without calls: Every% xx will need to become a byte in the multi-byte UTF-8 sequence.

No comments:

Post a Comment