0

I try to used calmquery below to retrieve data from sharepoint list column contain unicode character (UTF8) but I still cannot success result.

<Where>
  <Contains>
     <FieldRef Name='FullName' />
     <Value Type='Text'>ចាន់ សុភាព</Value>
  </Contains>

any advice please share. thanks.

1 Answer 1

1

Try using CDATA tag. Example:

<Contains>
     <FieldRef Name='FullName' />
     <Value Type='Text'>![CDATA["ចាន់ សុភាព"]]</Value>
  </Contains>

See these for more information:

How to query using CAML when a value has < in the value

Caml query with unicode charachter

2
  • It coming up with all rows that contain Unicode(10/10). actully I have only 1 column that contain "ចាន់ សុភាព" this value. any advice pls..
    – tola
    Commented Oct 8, 2015 at 3:10
  • It not working on my environment it used the C# code instead of it. if(item.Title.Contains(strValue)){}
    – tola
    Commented Oct 20, 2015 at 8:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.