Results 1 to 5 of 5

Thread: Cannot export chart to image

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    Dec 2012
    Posts
    19
    Answers
    1
    Vote Rating
    0
      0  

    Default Cannot export chart to image

    Hi all, I'm getting some trouble trying to export my chart to image. I'm new with ext js charting so I really can't find out how to solve it

    The error shown is:

    ArgumentError at /

    invalid byte sequence in UTF-8
    • file: RubyRegexp.java

    so I suposse it's something to do with the data.but how can I configure my chart to make a utf8 encode before sending data to export?

  2. #2
    Sencha User
    Join Date
    Dec 2012
    Posts
    19
    Answers
    1
    Vote Rating
    0
      0  

    Default

    By the way if you need the code of how I'm configuring my chart I can post it

  3. #3
    Sencha User
    Join Date
    Dec 2012
    Posts
    2
    Vote Rating
    0
      0  

    Default Also I've UTF 8 encoding problem exporting chart as image

    I've the same problem.
    There is someone that solved this problem?

  4. #4
    Sencha User
    Join Date
    Dec 2012
    Posts
    19
    Answers
    1
    Vote Rating
    0
      0  

    Default

    Hi alessandro,

    Don't know if is useful for you but I'm using PHP in the backend of my app. I do some Ajax request and the response is what I use to pupulate my chart store.

    Within the PHP code that I use to return the response I just call the utf8_encode(mydata) function.

    I mean, maybe you can solve it from your backend. I don't know if there's a way to encode data on the client side.

    Also, you can try to put the <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />
    tag on the frame your are using to render your chart.

  5. #5
    Sencha User
    Join Date
    Dec 2012
    Posts
    2
    Vote Rating
    0
      0  

    Default

    Thank for your reply.

    I've already tried what you proposed, unfortunately with no success.

    I've also searched svg source text sent by ext to io.sencha.com searching for the messed up UTF8 character with no result. All seems in ascii english.

    Any other idea?
    Do you need extra info?

    A.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •