opencpu / opencpu

OpenCPU system for embedded scientific computation and reproducible research
https://www.opencpu.org
Other
726 stars 121 forks source link

My opencpu server's post request for chinese data in oracle returns "?".However the code is working fine in opencpu-server's R console(returns the right string). #333

Open youyuxiansen opened 5 years ago

youyuxiansen commented 5 years ago

image

image

image

Anyone could help me! i'm sure my linux system ,oracle client,oracle server are all support UTF-8.Should be the coding problem of opencpu server. If it's hard to solve,please let me know and i will choose other way to build my R server.

@jeroen @robertzk

jeroen commented 5 years ago

What browser is this? Is it able to display Chineese characters?

youyuxiansen commented 5 years ago

It's postman,not browser.And I'm sure it supports Chinese characters.

meztez commented 5 years ago

I would say specify your encoding in your dbConnect, else it is using the system locale and it might not be want you want. add , encoding = "whatever")

Other than I would look at the binary response from opencpu to see if the binary representation match expectations. That could mean that postman is having some trouble displaying characters.