Hello everyone!
Success! Writeln was indeed the main culprit.
The following works:
WritelnUTF8(('あいうえお秋葉原'));
(Where:
1. WritelnUTF8 is a procedure that uses the Win32 API WriteConsole
directly, bypassing whatever writeln is doing.
2. Where the source code is saves as UTF8 with BOM
3. Where I
Hi,
2013/7/9 Jonas Maebe
>
> The console code page. You can get it using the following function:
> function GetConsoleOutputCP : UINT; stdcall; external 'kernel32' name
> 'GetConsoleOutputCP';
>
> 2. Is there any reason why writing out data in the local encoding (with
>> write statements, etc
Hi,
2013/7/9 Michael Schnell
> On 07/09/2013 11:02 AM, Noah Silva wrote:
>
>>
>> I convert it to UTF8 before displaying it
>>
>> Not a good idea.
>
> Well if the console is UTF8
> The FPC developers are right now busy implementing the new Delphi Strings.
> This _could_ mean that the a
Hi,
2013/7/9 Jonas Maebe
>
> On 09 Jul 2013, at 11:02, Noah Silva wrote:
>
> 1. What encoding "should" I be writing to the terminal?
>>
>
> The console code page. You can get it using the following function:
> function GetConsoleOutputCP : UINT; stdcall; external 'kernel32' name
> 'GetConsole
Hello everyone,
OK I have checked this out:
2013/7/9 Tomas Hajny
>
> There is code page 65001 for UTF-8, however I don't know since which
> version of MS Windows it is supported (and to which extent - e.g.
> including the console output). You may change the output code page for
> console using t
Hi,
This answer is a bit late, but...
2013/7/9 Dennis Poon
>
> I have followed steps in the Wiki, etc., but to little avail, so I have
>> some questions for anyone who knows more than me:
>> ...
>
> ...
>
> 4. I write the output to a file instead of the console, and it's ok.
>>
>
> Please stat
thanks a lot.
Dennis
Michael Van Canneyt wrote:
There are 3 options:
paszlib.pas pascal implementation of libz.
zstream.pp stream interface, uses paszlib.
zlib.pp native interface to C libz library.
Michael.
On Mon, 29 Jul 2013, Dennis Poon wrote:
I need to use CompressBuf and Deco
GIF or PNG?
PNG is using deflate algorithm.
GIF is using its own.
On Sun, Jul 28, 2013 at 4:53 PM, Mark Morgan Lloyd <
markmll.fpc-pas...@telemetry.co.uk> wrote:
> Michael Van Canneyt wrote:
>
>> There are 3 options:
>>
>> paszlib.pas pascal implementation of libz.
>>
>> zstream.pp stream int
Michael Van Canneyt wrote:
There are 3 options:
paszlib.pas pascal implementation of libz.
zstream.pp stream interface, uses paszlib.
zlib.pp native interface to C libz library.
Is any one of those more "natural" than the rest, because e.g. it's
already used for GIF handling?
--
Mark
There are 3 options:
paszlib.pas pascal implementation of libz.
zstream.pp stream interface, uses paszlib.
zlib.pp native interface to C libz library.
Michael.
On Mon, 29 Jul 2013, Dennis Poon wrote:
I need to use CompressBuf and DecompressBuf of zlib in fpc.
Thanks,
Dennis
_
I need to use CompressBuf and DecompressBuf of zlib in fpc.
Thanks,
Dennis
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
11 matches
Mail list logo