Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using SET_STRING_ELT and Rf_mkCharLenCE to handle output string encoding #7

Open
qinwf opened this issue May 3, 2016 · 1 comment

Comments

@qinwf
Copy link
Owner

qinwf commented May 3, 2016

> (res = re2_match("中文","中文",value = T))
     ?nocapture
[1,] "涓枃"   
> Encoding(res) = "UTF-8"
> res
     ?nocapture
[1,] "中文"  
@gagolews
Copy link

gagolews commented May 3, 2016

I recommend that the output is always UTF-8, irrespectively of the input enc. This is how I do in stringi too.

qinwf pushed a commit that referenced this issue May 4, 2016
qinwf pushed a commit that referenced this issue May 4, 2016
qinwf pushed a commit that referenced this issue May 4, 2016
qinwf pushed a commit that referenced this issue May 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants