Home Server
New Blog Posts: Merging Reports - Part 1 and Part 2

WebTier Encoding

edited March 2005 in Server
Is this possible to change encoding of XHTML text produced by WebTier to
UTF-8?
Problem description:
Generated XHTML has header:
<?xml version="1.0" encoding="UTF-8"?>
but it is encoded with my system default Windows-1250 instead of UTF-8.
Web browser by automatically displays report in UTF-8 encoding, so national
characters are shown incorrectly.

Does anybody know the solution?
Mark

Comments

  • edited March 2005

    I researched this one and looks like we need to call Delphi's AnsiToUtf8
    conversion function when generating the XHTML. We will try to correct this
    for the next maintenance release, RB 9.02.



    --
    Nard Moseley
    Digital Metaphors Corporation
    http://www.digital-metaphors.com


    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited June 2009
    Hi

    I'm using RB Server 11.03. I can confirm that the character encoding used in
    the generated report (0001.htm) file is UTF-8.

    Is there a way of changing this? We have some customer reporting problems
    with some characters not displaying, but if they change the character
    encoding in their browser then it makes a difference, but that the change is
    only temporary (the browser always reverts back to the encoding set
    specified in the HTML file).

    This appears to be a Firefox issue and not suich an issue in IE.

    Thanks
    Jason.

  • edited June 2009

    RB 11 for D2009, the webtier uses UTF-8.

    RB 11 for D2007 and prior, the webtier uses ISO-8859-1 (i.e. Latin-1).

    Please generate a sample report to an archive file (.raf) and then zip it up
    and send it to support@digital-metaphors.com. Also, please include relevant
    environment details including Delphi version and web browser versions.


    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.