Github user shivaram commented on the pull request:

    https://github.com/apache/spark/pull/7494#issuecomment-126061999
  
    @sun-rui @CHOIJAEHONG1 I took a look at this and it looks like the right 
way to do this would be to use `iconv` and not use `rawToChar` which doesn't 
parse UTF-8 correctly. I tried the following diff and it seems to pass the unit 
tests. 
    
    ```
     raw <- readBin(con, raw(), stringLen, endian = "big")
     iconv(list(raw), to="UTF-8")
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to