all groups > coldfusion flash integration > february 2006 >
You're in the

coldfusion flash integration

group:

Different langauge in CFCHART


Different langauge in CFCHART SyncronMan
2/2/2006 12:00:00 AM
coldfusion flash integration:
Hi
I'm using the content in a table as a title in a cfhart (flash) graph. Users
can change this content, and actually write anything - in any language. This is
not a problem if the user writes in English, or even in Chinese (with chinese
special chars). The text will display correcly in the graph. BUT - when a user
is using the Turkish langauge, the special Turkish characters are displayed as
? (question marks). Anyone got any ideas how to solve this? The browser itself
(IE) displays the text correcly, its only in the graph there is a problem. I'm
using the font: arialunicodeMS. The server is a MS server running with IIS.
Thanks in advance
Fredrik
Re: Different langauge in CFCHART SyncronMan
2/2/2006 1:35:26 PM
CF version 6.1 (upgrade to 7 is not an option). Encoding UTF-8. We have tried
different encodings without luck. Since the graph is generated on the server,
should the local encoding matter? The browser still displays the text correct,
but not the graph...
Re: Different langauge in CFCHART SyncronMan
2/2/2006 2:06:08 PM
Re: Different langauge in CFCHART PaulH *TMM*
2/2/2006 8:28:40 PM
[quoted text, click to view]

what ver of cf? what encoding are you using? there used to be issues w/flash
versions for some languages using unicode. try another format & see if that
Re: Different langauge in CFCHART PaulH *TMM*
2/2/2006 8:39:26 PM
[quoted text, click to view]

it's flash, clientside stuff matters. in any case, try changing the graph FORMAT
not the encoding. if you have a copy of the advanced cf6 book around, i put a
table in the i18n chapter detailing which graph formats worked w/which languages.

Re: Different langauge in CFCHART SyncronMan
2/3/2006 12:00:00 AM
Sure,
here's an example. You can downlode the CF code by right-clicking on the "code" link (its a text-file)

http://scp.syncron.com/lang/
Re: Different langauge in CFCHART PaulH *TMM*
2/3/2006 1:56:29 AM
[quoted text, click to view]

can i see an example? sorry, i don't have access to a cf6 server to test
Re: Different langauge in CFCHART PaulH *TMM*
2/4/2006 12:00:00 AM
[quoted text, click to view]

not that it matters much to you, but it works ok under cf7 in all formats. i
guess i'll ping the cf folks (though being cf6 i'm not sure what to expect). in
the meantime, have you tried making the file UTF-8 encoded (ie has a BOM),
adding this to the top of the test file:

<cfprocessingdirective pageencoding="utf-8">

also you might help verify where the issue lies by running the webcharts.bat
file (cf install charting dir, run at the server)& building a simple graph using
turkish chars.
Re: Different langauge in CFCHART PaulH *TMM*
2/5/2006 12:00:00 AM
Re: Different langauge in CFCHART PaulH *TMM*
2/5/2006 3:25:52 AM
one of the team MM folks (Jared C. Rypka-Hauer) has a cf6.1 server & he
was good enough to run some tests. flash format was garbaged but PNG &
JPG were both ok. can you re-try those formats?

Re: Different langauge in CFCHART SyncronMan
2/6/2006 12:00:00 AM
thanks for all the suggestions.. some answers:
* upgrade to CF7 is not possible for the moment.. unfortunately
* <cfprocessingdirective pageencoding="utf-8"> - tried it - no change
* webcharts.bat - we have no such file. webcharts.jar exists no bat file
* the page scp.syncron.com/lang shows all formats - none works with Turkish
* SQL Server 2000 is used - native driver (updated) - the result from the db
is shown correctly (with Turkish) in the <cfoutput> section - its only in the
graph where the garbage chars exists.
* to my knowledge all 6.1 hotfixes are applied (will check again)
* client flash version: 8, but has been tried on prior versions as well.
Re: Different langauge in CFCHART PaulH *TMM*
2/6/2006 12:00:00 AM
[quoted text, click to view]

dig around in the cf install dir, otherwise just run it from the jar (on the
server).

[quoted text, click to view]

well according to the jared's screen capture it works w/the other formats & the
way it's broken in flash is different, ie only some chars are garbaged. see
this: http://www.sustainablegis.com/images/turkishGraph.png

[quoted text, click to view]

same flash version as jared, though on a mac.

Re: Different langauge in CFCHART SyncronMan
2/6/2006 12:00:00 AM
I have searched everywhere... no .bat file. In the jar file, there are only .class files.

I can see the difference, but I cannot re-produce this on our server/clients

Re: Different langauge in CFCHART PaulH *TMM*
2/6/2006 12:00:00 AM
[quoted text, click to view]

Re: Different langauge in CFCHART SyncronMan
2/6/2006 12:00:00 AM
gets the errormessage:
Failed to load Main-Class manifest attribute from
C:\CFusionMX\lib\webcharts.jar

AddThis Social Bookmark Button