You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How are you evaluating strip "程铁"? I copy pasted the expression your wrote into utop just now:
# strip "程铁";;
- : string="程铁"
Maybe this is something to do with the file encoding of your OCaml source code, if you are compiling from a file?
FWIW, there have been feature requests to support Unicode (#24) but it has not been implemented. In this case, however, I would would not expect Re to mess up your string.
I have the following code to remove tab, newlines, etc.
I just realized that this code broke Chinese characters. For instance,
strip "程铁"
returned\231\168
, which does not make sense.Does Re support Chinese characters? If not, is there any workaround?
The text was updated successfully, but these errors were encountered: