Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

 Symbol appearing before £.

Advocate ,
Aug 21, 2009 Aug 21, 2009

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?

2.6K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Aug 21, 2009 Aug 21, 2009

Hi

Please use ASCII instead of   £

ASCII -   &#163;

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Aug 21, 2009 Aug 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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Aug 21, 2009 Aug 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).

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Aug 21, 2009 Aug 21, 2009

ah, so what role does cf play in this?

if the report's getting produced by VB, find out what encoding it uses (guessing windows-1252 or maybe less so, latin-1). since cf6, cf defaults to utf-8. i'm going to guess that you probably can't change the mainframe's encoding, so change cf's. stick a cfprocessingDirfective tag at the top of the cf page & set the pageEncoding option to whatever the html report is using (or just keep guessing until it looks ok).

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Aug 21, 2009 Aug 21, 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!.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Aug 22, 2009 Aug 22, 2009

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Aug 24, 2009 Aug 24, 2009
LATEST

Hi Paul,

We figured it out. The issue was actually with the VB Code in parsing the quoted printable value.

Now it is resolved.

Appreciate your time and help!.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources