Skip to main content
Inspiring
August 21, 2009
Question

 Symbol appearing before £.

  • August 21, 2009
  • 2 replies
  • 2863 views

Hi,

In one of our report we face this issue, like it is displaying the "Â" before £, Trademark and Registered symbols.

I tried setting the encoding as "UTF-8" using <cfprocessingdirective> , <cfcontent> and SetEncoding() functions.. But none of them were worked.

Can any one shed some light here?

    This topic has been closed for replies.

    2 replies

    Inspiring
    August 21, 2009

    first off, please don't use NCR. use the actual char.

    most likely your encodings (cf page vs cf server) aren't matching.

    what do you mean by "report"? cfreport?  where are these chars coming from? statict text? db?

    DavermsAuthor
    Inspiring
    August 21, 2009

    Hi Paul,

    Thanks for the tip.

    In server where can I set the encoding setting?. I saw one under the "CFMail settings" in Admin.

    Ours is a simple html report served by VB Dll (which actually comes from Mainframes).

    Inspiring
    August 23, 2009

    Hi Paul,

    Thanks for the reply.

    In VB6.0 we have the encoding set to "UTF-8" so as in ColdFusion end, I also tried having the <cfpreprocessingdirective> tag at the top of the page and the setencoding("form","UTF-8") functions before outputting the html.

    But still that "Â" character appears before the pound and other html entities like ® and © symbols.

    Let us know if we can try any other workaround(s).

    Thanks again Paul!.


    any chance i can see an example and/or the cf code?

    i don't recall much, if anything, about VB. unless you've messed up the cf, i'd

    have to call shenanigans on it for either messing up the output HTML encoding or

    sticking in badly encoded symbols in the output.

    Dileep_NR
    Inspiring
    August 21, 2009

    Hi

    Please use ASCII instead of   £

    ASCII -   &#163;