<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Writing UTF-8 CSV Files for Excel</title>
	<atom:link href="http://joconner.com/2010/03/csv-utf/feed/" rel="self" type="application/rss+xml" />
	<link>http://joconner.com/2010/03/csv-utf/</link>
	<description>Creating global software</description>
	<lastBuildDate>Wed, 09 May 2012 06:56:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
	<item>
		<title>By: x</title>
		<link>http://joconner.com/2010/03/csv-utf/comment-page-1/#comment-798</link>
		<dc:creator>x</dc:creator>
		<pubDate>Wed, 09 May 2012 06:56:50 +0000</pubDate>
		<guid isPermaLink="false">http://joconner.com/?p=226#comment-798</guid>
		<description>you can try this one: it works, you can open csv or text file without any symbol or character. 


----------------------------------------------------
Sub OpenTextFile()

   filetoopen = Application.GetOpenFilename(&quot;Text Files (*.txt;*.csv), *.txt;*.csv&quot;)
   If filetoopen = Null Or filetoopen = Empty Then Exit Sub

   Workbooks.OpenText Filename:=filetoopen, _
   Origin:=65001, DataType:=xlDelimited, Comma:=True, Tab:=True

End Sub
----------------------------------------------</description>
		<content:encoded><![CDATA[<p>you can try this one: it works, you can open csv or text file without any symbol or character. </p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Sub OpenTextFile()</p>
<p>   filetoopen = Application.GetOpenFilename(&#8220;Text Files (*.txt;*.csv), *.txt;*.csv&#8221;)<br />
   If filetoopen = Null Or filetoopen = Empty Then Exit Sub</p>
<p>   Workbooks.OpenText Filename:=filetoopen, _<br />
   Origin:=65001, DataType:=xlDelimited, Comma:=True, Tab:=True</p>
<p>End Sub<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: x</title>
		<link>http://joconner.com/2010/03/csv-utf/comment-page-1/#comment-797</link>
		<dc:creator>x</dc:creator>
		<pubDate>Wed, 09 May 2012 06:53:47 +0000</pubDate>
		<guid isPermaLink="false">http://joconner.com/?p=226#comment-797</guid>
		<description>great!</description>
		<content:encoded><![CDATA[<p>great!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jan</title>
		<link>http://joconner.com/2010/03/csv-utf/comment-page-1/#comment-628</link>
		<dc:creator>Jan</dc:creator>
		<pubDate>Mon, 31 Oct 2011 00:36:43 +0000</pubDate>
		<guid isPermaLink="false">http://joconner.com/?p=226#comment-628</guid>
		<description>This is great. I think the only missing thing is the ability to customize ribbons with it these (csv addin) commands.</description>
		<content:encoded><![CDATA[<p>This is great. I think the only missing thing is the ability to customize ribbons with it these (csv addin) commands.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Bullock</title>
		<link>http://joconner.com/2010/03/csv-utf/comment-page-1/#comment-427</link>
		<dc:creator>Jonathan Bullock</dc:creator>
		<pubDate>Tue, 25 Jan 2011 14:34:44 +0000</pubDate>
		<guid isPermaLink="false">http://joconner.com/?p=226#comment-427</guid>
		<description>Isn&#039;t FEFF the BOM for UTF-16 BE ?</description>
		<content:encoded><![CDATA[<p>Isn&#8217;t FEFF the BOM for UTF-16 BE ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: VM</title>
		<link>http://joconner.com/2010/03/csv-utf/comment-page-1/#comment-269</link>
		<dc:creator>VM</dc:creator>
		<pubDate>Fri, 18 Jun 2010 21:12:07 +0000</pubDate>
		<guid isPermaLink="false">http://joconner.com/?p=226#comment-269</guid>
		<description>Hi there,

I am trying to display Thai baht symbol in a CSV file. I write it using java.util.Currency

Currency.getInstance(&quot;THB&quot;).getSymbol(new Locale(&quot;th&quot;, &quot;TH&quot;))

I enabled Thai using Control panel but Excel was showing garbage character where as I am able to see this symbol in notepad. I used your suggestion but it didnt work.

I tried UTF-16LE encoding for setting the bom by encoding but that didnot work either. Any suggestions?? Thanks.

Here is the test case:
======================
import java.io.*;
import org.apache.commons.io.FileUtils;
import com.Ostermiller.util.CSVPrint;
import com.Ostermiller.util.ExcelCSVPrinter;
import java.util.*;

public class ThaiCurrencySymbolTest {

  public static void main(String[] args) throws Exception{
    File f1 = new File(&quot;C:\\Test-Thai-Symbol.csv&quot;);
    CSVPrint csvWriter = ThaiCurrencySymbolTest.getCSVPrintWriter(f1);
    csvWriter.print(Currency.getInstance(&quot;THB&quot;).getSymbol(new Locale(&quot;th&quot;, &quot;TH&quot;)) + &quot;1523.65&quot;);
    csvWriter.flush();
    csvWriter.close();
  }
  
    public static CSVPrint getCSVPrintWriter(File file) throws IOException {
       //OutputStreamWriter buf = new OutputStreamWriter(new FileOutputStream(file),&quot;TIS620&quot;);
       OutputStreamWriter buf = new OutputStreamWriter(new FileOutputStream(file),&quot;UTF-8&quot;);
        CSVPrint csvWriter = new ExcelCSVPrinter(buf);
        csvWriter.setAlwaysQuote(true);
        csvWriter.print(&quot;\uFEFF&quot;);
        return csvWriter;
    }  
}</description>
		<content:encoded><![CDATA[<p>Hi there,</p>
<p>I am trying to display Thai baht symbol in a CSV file. I write it using java.util.Currency</p>
<p>Currency.getInstance(&#8220;THB&#8221;).getSymbol(new Locale(&#8220;th&#8221;, &#8220;TH&#8221;))</p>
<p>I enabled Thai using Control panel but Excel was showing garbage character where as I am able to see this symbol in notepad. I used your suggestion but it didnt work.</p>
<p>I tried UTF-16LE encoding for setting the bom by encoding but that didnot work either. Any suggestions?? Thanks.</p>
<p>Here is the test case:<br />
======================<br />
import java.io.*;<br />
import org.apache.commons.io.FileUtils;<br />
import com.Ostermiller.util.CSVPrint;<br />
import com.Ostermiller.util.ExcelCSVPrinter;<br />
import java.util.*;</p>
<p>public class ThaiCurrencySymbolTest {</p>
<p>  public static void main(String[] args) throws Exception{<br />
    File f1 = new File(&#8220;C:\\Test-Thai-Symbol.csv&#8221;);<br />
    CSVPrint csvWriter = ThaiCurrencySymbolTest.getCSVPrintWriter(f1);<br />
    csvWriter.print(Currency.getInstance(&#8220;THB&#8221;).getSymbol(new Locale(&#8220;th&#8221;, &#8220;TH&#8221;)) + &#8220;1523.65&#8243;);<br />
    csvWriter.flush();<br />
    csvWriter.close();<br />
  }</p>
<p>    public static CSVPrint getCSVPrintWriter(File file) throws IOException {<br />
       //OutputStreamWriter buf = new OutputStreamWriter(new FileOutputStream(file),&#8221;TIS620&#8243;);<br />
       OutputStreamWriter buf = new OutputStreamWriter(new FileOutputStream(file),&#8221;UTF-8&#8243;);<br />
        CSVPrint csvWriter = new ExcelCSVPrinter(buf);<br />
        csvWriter.setAlwaysQuote(true);<br />
        csvWriter.print(&#8220;\uFEFF&#8221;);<br />
        return csvWriter;<br />
    }<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://joconner.com/2010/03/csv-utf/comment-page-1/#comment-210</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Wed, 24 Mar 2010 17:29:30 +0000</pubDate>
		<guid isPermaLink="false">http://joconner.com/?p=226#comment-210</guid>
		<description>pardon the obvious pun but that&#039;s the BOM</description>
		<content:encoded><![CDATA[<p>pardon the obvious pun but that&#8217;s the BOM</p>
]]></content:encoded>
	</item>
</channel>
</rss>

