<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic RE: Txt with special characters in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Txt-with-special-characters/m-p/83230#M34542</link>
    <description>Hi Gilberto. &lt;BR /&gt;I am assuming you are using OCR functionality. If not, this is probably not useful/relevant.&lt;BR /&gt;&lt;BR /&gt;However, I had a similar problem in Danish where we also have special characters, and what helped was installing the correct Tesseract language files under BluePrism folder.&lt;BR /&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;Ingrid&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Ingrid Olsen&lt;BR /&gt;Configurator and proces consultant&lt;BR /&gt;Forca&lt;BR /&gt;Europe/Copenhagen&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Wed, 08 Jan 2020 13:58:00 GMT</pubDate>
    <dc:creator>IngridOlsen</dc:creator>
    <dc:date>2020-01-08T13:58:00Z</dc:date>
    <item>
      <title>Txt with special characters</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Txt-with-special-characters/m-p/83227#M34539</link>
      <description>Hi everybody, i have to read a txt file which is in spanish, the problem here is that some words are with accent (´) which is a special character and when i read my file that character is changed by this character (�). I have tried using a schema.ini file to define a charset but it doesn't work. i hope someone of you know how to resolve this.&lt;BR /&gt;&lt;BR /&gt;Thank you in advance four your help.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Gilberto Lopez&lt;BR /&gt;Senior Consultant&lt;BR /&gt;Indra&lt;BR /&gt;America/Mexico_City&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Dec 2019 23:01:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Txt-with-special-characters/m-p/83227#M34539</guid>
      <dc:creator>Gilberto.lopez</dc:creator>
      <dc:date>2019-12-10T23:01:00Z</dc:date>
    </item>
    <item>
      <title>RE: Txt with special characters</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Txt-with-special-characters/m-p/83228#M34540</link>
      <description>In a similiar situation I created a new object "Read lines with encoding"&lt;BR /&gt;Have to supply the correct encoding to read the file. &lt;BR /&gt;Like&amp;nbsp;EncodingName = "iso-8859-1"&lt;BR /&gt;&lt;BR /&gt;The objected was based on standard action "Read lines from file" in Utility - File Management".&lt;BR /&gt;Here is the code in the code stage&lt;BR /&gt;
&lt;PRE class="language-csharp"&gt;' Assume success
Success &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; True
Message &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;""&lt;/SPAN&gt;
Dim enc As System&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;Text&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;Encoding
Try
	enc &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; System&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;Text&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;Encoding&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;GetEncoding&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;EncodingName&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;

	Lines &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; New &lt;SPAN class="token class-name"&gt;DataTable&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;
	Lines&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;Columns&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Add&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;"Line"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;GetType&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;String&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;

	Using sr As New &lt;SPAN class="token class-name"&gt;StreamReader&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;File_Path&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; enc&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;

		EOF &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; False
		Start_Line &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; Math&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Max&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;1&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; Start_Line&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;

		Dim line &lt;SPAN class="token keyword"&gt;as&lt;/SPAN&gt; String
		Dim lineNo As Integer &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token number"&gt;0&lt;/SPAN&gt;
		Do
			line &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; sr&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;ReadLine&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;
			lineNo &lt;SPAN class="token operator"&gt;+&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token number"&gt;1&lt;/SPAN&gt;

			If line Is Nothing Then EOF &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; True &lt;SPAN class="token punctuation"&gt;:&lt;/SPAN&gt; Exit Do
			If lineNo &lt;SPAN class="token operator"&gt;&amp;gt;=&lt;/SPAN&gt; Start_Line Then Lines&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;Rows&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Add&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;line&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;
			If lineNo &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; End_Line Then Exit Do

		Loop Until line Is Nothing
		Line_Count &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; Lines&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;Rows&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;Count

	End Using

Catch ex As Exception
	Success &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; False
	Message &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; ex&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;Message

End Try​&lt;/PRE&gt;
&lt;BR /&gt;New text input parameter&lt;BR /&gt;EncodingName&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Roar Nilsen&lt;BR /&gt;Manager&lt;BR /&gt;Duit AS&lt;BR /&gt;Europe/Oslo&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Dec 2019 10:58:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Txt-with-special-characters/m-p/83228#M34540</guid>
      <dc:creator>RoarNilsen</dc:creator>
      <dc:date>2019-12-11T10:58:00Z</dc:date>
    </item>
    <item>
      <title>RE: Txt with special characters</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Txt-with-special-characters/m-p/83229#M34541</link>
      <description>Hi, i'm going to try your solution hoping it works.&lt;BR /&gt;&lt;BR /&gt;Thanks a lot.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Gilberto Lopez&lt;BR /&gt;Senior Consultant&lt;BR /&gt;Indra&lt;BR /&gt;America/Mexico_City&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Dec 2019 20:56:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Txt-with-special-characters/m-p/83229#M34541</guid>
      <dc:creator>Gilberto.lopez</dc:creator>
      <dc:date>2019-12-12T20:56:00Z</dc:date>
    </item>
    <item>
      <title>RE: Txt with special characters</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Txt-with-special-characters/m-p/83230#M34542</link>
      <description>Hi Gilberto. &lt;BR /&gt;I am assuming you are using OCR functionality. If not, this is probably not useful/relevant.&lt;BR /&gt;&lt;BR /&gt;However, I had a similar problem in Danish where we also have special characters, and what helped was installing the correct Tesseract language files under BluePrism folder.&lt;BR /&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;Ingrid&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Ingrid Olsen&lt;BR /&gt;Configurator and proces consultant&lt;BR /&gt;Forca&lt;BR /&gt;Europe/Copenhagen&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Jan 2020 13:58:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Txt-with-special-characters/m-p/83230#M34542</guid>
      <dc:creator>IngridOlsen</dc:creator>
      <dc:date>2020-01-08T13:58:00Z</dc:date>
    </item>
  </channel>
</rss>

