<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19258">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>Thanks !</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>I try and let know about</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>GLBX</FONT></DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B>
<A title=padovani.r@gmail.com href="mailto:padovani.r@gmail.com">Roberto
P.</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=lazarus@lists.lazarus.freepascal.org
href="mailto:lazarus@lists.lazarus.freepascal.org">Lazarus mailing list</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, September 06, 2012 9:22
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Lazarus] Charset in
TSdfDataSet</DIV>
<DIV><BR></DIV>Hi,
<DIV><BR></DIV>
<DIV>I have recently dealt with a CSV file and accents.</DIV>
<DIV>I concluded that the TSdfDataSet had no problem with reading the file; I
was using a TMemo to show the strings and to see them correctly I had to write
something like this:</DIV>
<DIV><BR></DIV>
<DIV> Memo.Lines.Text :=
UTF8Encode(SdfDataSet.Fields[0].AsString)</DIV>
<DIV><BR></DIV>
<DIV>I'm no expert at all, especially about string encoding, so maybe someone
else could better explain what we should with the string format in the DataSet
and in the LCL components, but that should make you work in the
meantime.</DIV>
<DIV><BR></DIV>
<DIV> R#</DIV>
<DIV><BR><BR>
<DIV class=gmail_quote>2012/9/6 GLBX <SPAN dir=ltr><<A
href="mailto:LBX@swing.be" target=_blank>LBX@swing.be</A>></SPAN><BR>
<BLOCKQUOTE
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote><U></U>
<DIV bgcolor="#ffffff">
<DIV><FONT face=Arial>Hi !</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>First time I am here. Hope I do well with posting my
question here.</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>Working with a CSV file encoded with accents in French
(é, è, ô, etc...), how can I change the charset for the TSdfDataSet in order
to see those accents and not the ? replacing char?</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>Thanks for your answer !</FONT></DIV>
<DIV><FONT
face=Arial></FONT> </DIV></DIV><BR>--<BR>_______________________________________________<BR>Lazarus
mailing list<BR><A
href="mailto:Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</A><BR><A
href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus"
target=_blank>http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</A><BR><BR></BLOCKQUOTE></DIV><BR></DIV>
<P>
<HR>
<P></P>--<BR>_______________________________________________<BR>Lazarus
mailing
list<BR>Lazarus@lists.lazarus.freepascal.org<BR>http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus<BR></BLOCKQUOTE></BODY></HTML>