Github user chenghao-intel commented on the pull request:
https://github.com/apache/spark/pull/1586#issuecomment-50427397
```
scala> val a = "\uF93D\uF936\uF949\uF942"
a: String = ????
scala> a.getBytes("UTF-8").length
res2: Int = 12
scala> a.length
res4: Int = 4
```
It's works the same as you wrote in `Strlen`
```
string.asInstanceOf[String].getBytes(strEncoding).length
```
I am not sure why you try to get the bytes length for `Strlen`. Seems not
reasonable.
---
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.
---