ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Symbol
Posted by Miriam on Jan-13-2012 01:23
Hi,

I need to add ₪ - NIS Symbol ASCCI CODE "₪" to the label pie:

$arrExtraField(array("₪));
$c->addExtraField($arrExtraField);

but in the pie I see "₪" and not ₪.

THX

  Re: Symbol
Posted by Peter Kwan on Jan-13-2012 03:59
Attachments:
Hi Miriam,

In your forum message, the "₪" appears normally, so I am not sure what is the exact issue. May be you can attach your pie chart image to help me understand the issue.

Are you entering & # 8 3 6 2 ; (without the space) in your PHP code? If this is the case, note that & # 8 3 6 2 ; is HTML code, not PHP code. The & # 8 3 6 2 ; only works if it is interpreted by the browser, but in charting, the text is processed by the server. So the text needs to be entered in PHP syntax, not HTML syntax.

To enter the text in PHP syntax, just enter it just like entering any other text. If you cannot type the character from your keyboard, you may go to Windows Character Map, and copy the character, and paste it to your PHP source code. Note that you would need to use a text editor that can support unicode text (the text editor that I use is "Notepad++" http://notepad-plus-plus.org/). After that, please save the PHP code as UTF8 (some text editors may include byte order mark BOM when saving the file in UTF8 - please disable BOM, as PHP does not support it).

I have attached an example with the source code in UTF8 encoding for your reference.

If for some reasons, you cannot use a UTF8 editor, then you would need to manually enter the UTF8 encoding to the source code. For example:

$arrExtraField = array("\\xE2\\x82\\xAA");

The "E2 82 AA" is the UTF8 encoding for ₪. You can use http://rishida.net/tools/conversion/ to find out what is the UTF8 encoding of your character.

Hope this can help.

Regards
Peter Kwan
simplepie.php
simplepie.php

611 bytes
    
simplepie.png

  Re: Symbol
Posted by Miriam on Jan-13-2012 17:31
Hi Peter,
Thanks for quick reply, I run this code and this is working perfect.
Many thanks
Miriam