Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

include statement

Hi Folks,

I need your extended help.

Unable to include a text file (saved with Encoding Unicode) through include statement , However while including the text file (Encoding ANSI) its reading information successfully.

for your ref.

Script snapshot :

error.JPG

9 Replies
Not applicable
Author

giakoum
Partner - Master II
Partner - Master II

these characters mean nothing for the QV scripting engine.

Not applicable
Author

Actually that is my concern, This occurs only when I am including a Unicode text file , how ever if I am including a ANSI text file then its running successfully.

How can an Unicoded text file be included ?

prieper
Master II
Master II

Can you post an example?

Peter

Not applicable
Author

Attached two text files with same text (one in UNICODE & another in ANSI encoding) which need to call in include statement in qlikview.

Just create a simple qlikview doc. and try including separately these files.

For ex. $(must_include=path\ANSI.txt);

I am sure you can see the difference.

prieper
Master II
Master II

What about a workaround - data can be loaded with "Character Set":

Command:

LOAD

  @1

FROM

[.\unicode.txt]

(txt, unicode, no labels, delimiter is ';', msq);

LET sCommand = PEEK('@1', 0, Command);

$(sCommand);          // executes the command

DROP TABLE Command;     // clean up

Noticed that statements in your files should be ending with a ";"

HTH Peter

Not applicable
Author

Thanks for the work around Peter .

But I just wonder why Qlikview can't read Unicode text through include statement !!!

prieper
Master II
Master II

Suggest to post this as idea

Peter

Not applicable
Author

Thank you Peter, that I am going to do.....