Menu

#35 Stroke() seems not to work for UTF-8 Source-Files

open
nobody
None
5
2009-02-02
2009-02-02
Anonymous
No

If i save the source UTF-8 encoded, the "Stroke()" function does not work.

It creates erroneous Output. ("The image [...] cannot be displayed, because it contains errors")

pChart 1.27d | Apache 2. | Win XP 32 | Firefox 3.0.5 and IE 7

Reproduce:
Open the Example1.php in a text editor.
Replace the "Render" function with "Stroke()".
Save it. -> it works.
Save it as UTF-8 -> it doesnt work.

Discussion

  • christian studer

    I don't have problems with UTF-8-source files on my system, Stroke() works fine. (Same environment: Apache 2, Win XP).

    Save your file as UTF-8 and comment out the Stroke()-function. Open it in the browser and see what kind of error is being displayd.

     
  • Nobody/Anonymous

    I saved Example1.php as UTF-8
    last line[48]: $Test->drawTitle(60,22,"example 1",50,50,50,585);
    Output: 

    I'm using Notepad++ and discovered that it works, if i save the file as "UTF-8 without BOM" but doesn't work if i save it as "UTF-8".
    (Didn't know, that UTF-8 has/needs a BOM)

    I checked it twice using EditPlus. It works there if i save it as UTF-8.

    So it seems just doesnt work for "UTF-8 with BOM".

     

Log in to post a comment.

MongoDB Logo MongoDB