[fpc-pascal] UTF8 JSON library: was: [Lazarus] UTF-8 XML

2012-06-24 Thread Reinier Olislagers
(Cross-posted to Lazarus and FPC lists) On the Lazarus list, On 24-6-2012 10:17, Felipe Monteiro de Carvalho wrote: Hello, I am using xmlread and dom from FPC to read a XML file and I got an unpleasant surprise. It is converting things like this: mo#x00B1;!-- PlusMinus; --/mo Into:

[fpc-pascal] Writing an outlook addons in FPC

2012-06-24 Thread ik
Hello, What is require in order to develop addons for MS Outlook using FPC ? Are there any existed headers that where bind to Pascal that does it ? Thanks, Ido ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

[fpc-pascal] Re: encryption and decryption

2012-06-24 Thread leledumbo
For examples, I think it's better to use the data type wrapper of the Read/Write, instead of using the low level methods: {$mode objfpc}{$H+} uses classes,blowfish; var en: TBlowFishEncryptStream; de: TBlowFishDeCryptStream; s1,s2: TStringStream; key,value,temp: String; begin key :=

Re: [fpc-pascal] UTF8 JSON library: was: [Lazarus] UTF-8 XML

2012-06-24 Thread Luiz Americo Pereira Camara
Em 24/6/2012 07:58, Reinier Olislagers escreveu: Related: With the help of Ludo Brands - as usual ;) - I've converted the FPC fpjson library to return UTF8 data. I use it for my twitter/Oauthv1 library/program; you can find it incorporated there at https://bitbucket.org/reiniero/fpctwit/src

[fpc-pascal] Re: UTF8 JSON library: was: [Lazarus] UTF-8 XML

2012-06-24 Thread Reinier Olislagers
On 24-6-2012 17:05, Luiz Americo Pereira Camara wrote: Em 24/6/2012 07:58, Reinier Olislagers escreveu: Related: With the help of Ludo Brands - as usual ;) - I've converted the FPC fpjson library to return UTF8 data. I use it for my twitter/Oauthv1 library/program; you can find it

Re: [fpc-pascal] Re: encryption and decryption

2012-06-24 Thread Rainer Stratmann
Am Sunday 24 June 2012 16:59:36 schrieb leledumbo: key := 'testkey'; value := 'this is a string'; How is it working? By xoring 'testkey' with 'this is a string' byte by byte? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

[fpc-pascal] Re: encryption and decryption

2012-06-24 Thread Reinier Olislagers
On 24-6-2012 17:30, Rainer Stratmann wrote: Am Sunday 24 June 2012 16:59:36 schrieb leledumbo: key := 'testkey'; value := 'this is a string'; How is it working? By xoring 'testkey' with 'this is a string' byte by byte? I hope not. http://en.wikipedia.org/wiki/Blowfish_%28cipher%29

Re: [fpc-pascal] Windows Phone 8 + pascal

2012-06-24 Thread Sven Barth
On 24.06.2012 15:39, Juha Manninen wrote: *In a CNN news page http://edition.cnn.com/2012/06/20/tech/mobile/windows-phone-8-microsoft/index.html I found* that Windows Phone 8 will support native C code. That means it will support also native pascal code. Does anyone know how is it done in

Re: [fpc-pascal] Re: UTF8 JSON library: was: [Lazarus] UTF-8 XML

2012-06-24 Thread Luiz Americo Pereira Camara
Em 24/6/2012 12:22, Reinier Olislagers escreveu: On 24-6-2012 17:05, Luiz Americo Pereira Camara wrote: Hi, Thanks for your work. I plan to look at OAuth library soon No problems, if you have questions, please feel free to ask. I will About fpjson and UTF8, can you post an example

Re: [fpc-pascal] Re: UTF8 JSON library: was: [Lazarus] UTF-8 XML

2012-06-24 Thread Mattias Gaertner
On Sun, 24 Jun 2012 15:14:36 -0300 Luiz Americo Pereira Camara luiz...@oi.com.br wrote: Em 24/6/2012 12:22, Reinier Olislagers escreveu: On 24-6-2012 17:05, Luiz Americo Pereira Camara wrote: Hi, Thanks for your work. I plan to look at OAuth library soon No problems, if you have

Re: [fpc-pascal] Re: UTF8 JSON library: was: [Lazarus] UTF-8 XML

2012-06-24 Thread Reinier Olislagers
On 24-6-2012 20:38, Mattias Gaertner wrote: On Sun, 24 Jun 2012 15:14:36 -0300 Luiz Americo Pereira Camara luiz...@oi.com.br wrote: Em 24/6/2012 12:22, Reinier Olislagers escreveu: On 24-6-2012 17:05, Luiz Americo Pereira Camara wrote: // Takes care of conversion...

[fpc-pascal] Codepage: UTF-8 code greater than 65535 found

2012-06-24 Thread luciano de souza
Hello all, In order to enable UTF-8 characters, I tried to use it: program dvcodepage; {$codepage UTF8} uses Sysutils; var x: integer; BEGIN writeln('Digite um número'); readln(x); writeln('O número digitado foi ', x); END. I really didn't expect errors, but I got the following output: Free