Jump to content
X2Community Forums

[Solved] Strange character before £ symbol...


Recommended Posts

I have just started using this CRM software and despite it being a little tricky, i am getting there.

 

I am just trying to create a template document and when it displays the 'invoice lines' i am getting the following displayed:

 

£1022.50

 

I have searched the forums and added a few bits of code which was recommended. I shouldn't have to do a download as this was only installed yesterday?!?!

 

Please help if you can. Thanks.

Link to post
Share on other sites
  • 4 months later...

Thanks Raymond,

 

Any idea when the next release is due please ?

 

If it's any help, I noticed that if I force the Character Encoding to Unicode in Firefox it is fine, but when I reload the 'print invoice' report the encoding goes back to 'Western' and the problem returns.

 

Cheers,

GB.

Link to post
Share on other sites

The next release should be available in about two weeks, no hard date yet for the next release. The fix is exactly as you mention: I've explicitly set the encoding in the header. If you'd like to patch your instance, you can apply the following diff to protected/modules/quotes/controllers/QuotesController.php

        public function actionPrint($id) {
+               header('Content-type: text/html; charset=utf-8'); 
                echo $this->getPrintQuote($id);
                return;
        }

Raymond

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...