Github user javadba commented on the pull request:

    https://github.com/apache/spark/pull/1586#issuecomment-50430768
  
    @chenghao-intel    Thanks for your pointer: that should fix the problem. 
Here is updated test case that works now on my local and I am going to push it 
to my PR:
    
        checkEvaluation(Strlen(Literal("\uF93D\uF936\uF949\uF942", StringType), 
"ISO-8859-1"), 4)
        checkEvaluation(Strlen(Literal("\uF93D\uF936\uF949\uF942", StringType), 
"UTF-8"), 4)
        checkEvaluation(Strlen(Literal("\uF93D\uF936\uF949\uF942", StringType), 
"UTF-16"), 2)
        checkEvaluation(Strlen(Literal("\uF93D\uF936\uF949\uF942", StringType), 
"UTF-32"), 1)



---
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.
---

Reply via email to