Sie sind nicht angemeldet.

1

Dienstag, 17. April 2012, 19:33

Special characters in SHOWTEXT

HI,

According to documentation, it is not possible to use special characters in SHOWTEXT action and I have to use HEX code instead.
But it does not work for me.

I want to display "John, Peter, Mary". My code is:

Quellcode

1
showtext(John%2CPeter%2CMary , NAZOV);


But the result is this:


What am I doing wrong?

Thanks
Juraj

2

Dienstag, 17. April 2012, 19:49

Hi!
Use this showtext( 'John & # 044; Peter & # 044; Marry' );
I'm add spaces between & and # (forum parser change it to , )

Regards
Andrey *thumbup*
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN

Zephyr

Profi

Beiträge: 1 003

Wohnort: Netherlands

Beruf: Web developer

  • Nachricht senden

3

Dienstag, 17. April 2012, 20:32

Yeah, you need to put quotes around the text :)

4

Mittwoch, 18. April 2012, 07:00

Thank you guys, the combination of those two works OK.
The example in the documentation is not very good.

Anyway, problem solved.

Thanks
Juraj

5

Donnerstag, 19. April 2012, 16:16

Hi,

the problem here is something different - when using %N where N is a number inside an <action> element, then this tags are referring to calling parameters and when there is no parameter they will resolve to 'null',

see here:
http://krpano.com/docu/xml/#actionparameters

to escape the % character here use two % characters, e.g. %%2

best regards,
Klaus