<div dir="ltr">I have been using powershell againt zimbra for a long time. but now I was about to experiment on some code to do search queries, I&#39;m hitting a wall. I think perhaps the problem lies in powershell.<div>so far I havent managed to get around this yet. </div><div><br></div><div>I&#39;m using &quot;Invoke-RestMethod -Method Post&quot; to submitt my zimbra soap request.</div><div>everything works if my search is standard english chars. However once I add my scandinavian chars. it just dosent work. </div><div><br></div><div>and I get this in mailbox.log</div><div><br></div><div><div>misc - Problem parsing XML - Fatal Error: Problem on line 1 of document : Invalid byte 1 of 1-byte UTF-8 sequence.</div></div><div><div>soap - C: (ParseError:Document parse failed)</div></div><div><div>&lt;soap:Body&gt;&lt;SearchRequest xmlns=&quot;urn:zimbraMail&quot; fullConversation=&quot;0&quot; limit=&quot;100&quot; query=&quot;m\ufffdterom &quot; types=&quot;message&quot; fetch=&quot;all&quot; html=&quot;1&quot; max=&quot;10&quot;&gt;&lt;header n=&quot;X-Spam-Status&quot; /&gt;&lt;header n=&quot;X-Spam-Flag&quot; /&gt;&lt;/SearchRequest&gt;&lt;/soap:Body&gt;</div></div><div><br></div><div><br></div><div>is suppose to say query=&quot;møterom&quot;. (i&#39;m looking at mailbox.log using a ssh client set to show utf-8)</div><div><br></div><div>Anyone hit the same problem and have a workaround ?</div></div>