On Pawn
homepage wrote:
Quote:
To suit internationalization and localization, pawn supports Unicode/UCS-4 and UTF-8, as well as codepages. The compiler can convert source code entered in a particular codepage to Unicode; it also supports source code files in UTF-8 format.
|
Question 1:
I wrote plugin and save it in utf-8 (with 0xEF 0xBB 0xBF in first bytes).
But i can't compile it with error:
Quote:
test.sp(1) : error 010: invalid function or declaration
|
Why I must delete 0xEF 0xBB 0xBF before compilation?
Question 2:
SourcePawn compiler have -c option
Code:
-c<name> codepage name or number; e.g. 1252 for Windows Latin-1
Is this option for "convert source code entered in a particular codepage to Unicode"?
I find place and format of codepage file in source codes of Pawn compliler.
It's "codepage" directory, and files from
http://unicode.org/Public/MAPPINGS/
Is that right?
When i save plugin in cp1251 and compile it with -c1251 i have error
Quote:
error 043: character constant exceeds range for packed string
|
How use -c option right?
Compiler version is
SourcePawn Compiler 1.1.0.2037
Copyright (c) 1997-2006, ITB CompuPhase, (C)2004-2008 AlliedModders, LLC