Config File Guide

Get Help on scripting in POL with configurations, config setups, script trouble shooting, etc.

Moderator: POL Developer

Post Reply
Duttones
Apprentice Poster
Posts: 54
Joined: Tue Mar 27, 2012 8:56 pm

Config File Guide

Post by Duttones »

Hi, i tried to use CFG files with accents, but doesn't works good.
I used "GetConfigStringArray" to get the key "prayer" from "allspells.cfg", they are like that:

Prayer Deuses, protejãm-no!
Prayer No nome dos Deuses, Proteção!
Prayer Benção da Proteção!

But, when i use "PrintTextAbove" to show the "prayer[1]", show like "Deuses Protej$m-no!", "No nome dos Deuses, Prote%$o!", "Ben$@o da Prote%$o!".

Anyone knows how i fix that?

Notes: I'm using CFG files with UTF-8 encode.

Edit: I'm discoverd tem problem aren't in CFG files, but in "return" code. When i send the accents through a function to another program, the accents bug. But, i'm still don't know how to fix it.
Terciob
Master Poster
Posts: 90
Joined: Fri Nov 07, 2008 3:47 am

Re: Config File Guide

Post by Terciob »

Try this:

use unicode;
PrintTextAboveUC (who, CAscZ("Benção da Proteção!"), "ENU");
Post Reply