0

I'm using french words with special characters like "é" "à" etc. When I trying to insert text in my list fields using powershell, it does insert the values but the characters aren't well encoded. For exemple I have a "è" instead of having "è".

    $weburl = "http://mysite/"
    $web = Get-SPWeb $webUrl
    $list = $web.GetList("/Lists/myList/")
    $newItem = $list.AddItem()
    $newItem["Titre"] = "Problème" # <-- here is the issue
    $newItem.update()

How can I fix this?

1 Answer 1

0

According to the code editor used, characters encoding may be different. We have to be sure that the encoding is the right one. Sometime, saving the file using the UTF-8 enccoding is not sufficient for some code editor.

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.