Note that there are some explanatory texts on larger screens.

plurals
  1. PORussian characters are destroyed after my ftp upload
    primarykey
    data
    text
    <p>the context is as follow: I recive xml files with russian text, my FileSystemWacher on Create event transfer them to an internal ftp server like this:</p> <p>public static FtpWebResponse UploadFile(string localFile, string ftpFile, NetworkCredential credentials) {</p> <pre><code> //Thread.Sleep(2000); // Get the object used to communicate with the server. FtpWebRequest request = (FtpWebRequest)WebRequest.Create(ftpFile); request.Method = WebRequestMethods.Ftp.UploadFile; request.UseBinary = true; request.Proxy = null; request.Credentials = credentials; using (FileStream sourceStream = new FileStream(localFile,FileMode.Open)) using (Stream requestStream = request.GetRequestStream()) { CopyStream(sourceStream, requestStream); } FtpWebResponse response = (FtpWebResponse)request.GetResponse(); return response; } </code></pre> <p>private static void CopyStream(Stream input, Stream output) { byte[] buffer = new byte[32768]; while (true) { int read = input.Read(buffer, 0, buffer.Length); if (read &lt;= 0) return; output.Write(buffer, 0, read); } }</p> <p>After the transfer, on the ftp side, files look like that:</p> <pre><code>&lt;OTPR consignment_number="33504655" weight_of_load="57160" forwarding_railway="22" forwarding_station="330206" consignor="3590" name_of_consignor="пїЅпїЅпїЅ "пїЅпїЅпїЅпїЅпїЅпїЅIпїЅ-пїЅпїЅпїЅпїЅIпїЅпїЅпїЅпїЅпїЅ". 18011. пїЅ. пїЅпїЅпїЅпїЅпїЅпїЅпїЅ. пїЅпїЅпїЅ.пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ, пїЅпїЅпїЅ.1 пїЅпїЅIпїЅ 225. 0472719922." destination_railway="53" destination_station="517508" consignee="9999" name_of_consignee="пїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅ." packing="2" nhm="12019000" name_of_load="пїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅ" dt="24012013" /&gt; </code></pre> <p>not like the original:</p> <pre><code>&lt;OTPR consignment_number="33504671" weight_of_load="58740" forwarding_railway="22" forwarding_station="330206" consignor="3590" name_of_consignor="ТОВ "КОМПАНIЯ-АГРОIНВЕСТ". 18011. М. ЧЕРКАСИ. ВУЛ.ДОБРОВОЛЬСЬКОГО, БУД.1 ОФIС 225. 0472719922." destination_railway="53" destination_station="517508" consignee="9999" name_of_consignee="БУНГЕ РОМАНИЯ СРЛ." packing="2" nhm="12019000" name_of_load="БОБЫ СОЕВЫЕ" dt="24012013" /&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload