Re: Ascii-problems when compiling stand-alone in swi-prolog...
From: Cesar Rabak (crabak_at_acm.org)
Date: 02/14/04
- Previous message: Arnaud Gotlieb: "LAST CFP: ICLP'04 (International Conference on Logic Programming)"
- In reply to: Olof: "Ascii-problems when compiling stand-alone in swi-prolog..."
- Next in thread: Olof: "Re: Ascii-problems when compiling stand-alone in swi-prolog..."
- Reply: Olof: "Re: Ascii-problems when compiling stand-alone in swi-prolog..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 14 Feb 2004 00:06:29 -0200
Olof escreveu:
> Hi there!
>
> I'm having a really annoying trouble when creating stand-alone
> executables in Swi...My professor gave me a tip of this group so on
> his recommendation I plead for your expertice on this...
Humm... will try ;-?
>
> When I compile a stand-alone executable in Swi, some of the
> characters (å,ä and ö...Yes, I'm from Sweden, you guessed it)
> transforms into other characters. I've figured out that the coding
> system for swedish ascii is iso-latin-1-with-esc (at least that's the
> case in sicstus), but unlike in sicstus, I have found no way to
> change coding system in swi. Is it possible to change this in the
> compilation-command? Right now I'm just writing:
Let me ask you: is your OS MS Windows of some sort? And the 'transformed
characters' are the ones you see in the SWI IDE correctly 'wrong' in the
command line?
>
> plcon.exe --goal=start_goal --stand_alone=true -o output -c input.pl
>
> in order to get an executable. Should there be anything else in
> there? Please help me with this problem, any help is greatly
> appreciated (going nuts here...)...
>
If my questions are both yes, the problem lies in the character set for
the command prompt be different than the one used in the graphical
enviroment:
You have two choices:
1) Avoid altogether accented characters; or
2) Use the characters (in your program source) which will give in
programm output the 'right' characters.
HTH
-- Cesar
- Previous message: Arnaud Gotlieb: "LAST CFP: ICLP'04 (International Conference on Logic Programming)"
- In reply to: Olof: "Ascii-problems when compiling stand-alone in swi-prolog..."
- Next in thread: Olof: "Re: Ascii-problems when compiling stand-alone in swi-prolog..."
- Reply: Olof: "Re: Ascii-problems when compiling stand-alone in swi-prolog..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|