Jump to content

How to remove � from cart.php


alexpirate

Recommended Posts

whats your system (whmcs) charset?

looks like an utf-8 output problem.

 

ensure that the following is in the ode of your header.tpl:

<head>
 <meta http-equiv="content-type" content="text/html; charset={$charset}" />
<!-- ... -->
</head>
<!-- ... -->

so, the browser knows what charset view it have to select.

Link to comment
Share on other sites

In my header.tpl:

 

{php}
/**
* header.tpl
* Compatible with WHMCS v4.0.0 and above
* 
* @package			JWHMCS:  Joomla / WHMCS Integration
* @version	 		$Id: header.tpl 59 2009-10-25 00:51:55Z Steven $
* @author 			Go Higher Information Services
* @copyright 	Copyright (c) 2009, Go Higher Information Services
* @link 				http://gohigheris.com/
*/

{/php}
{$htmlheader}

<link rel="stylesheet" type="text/css" href="templates/{$template}/style.css" />

<div class="border-left">
<div class="border-top">
<div class="border-right">
<div class="border-bottom">
<div class="corner-top-left">
<div class="corner-top-right">
<div class="corner-bottom-left">
<div class="corner-bottom-right">                         

 

I use WHMCS + J!WHMCS Integrator + Joomla

In my Joomla HTML the META tag use UTF-8

 

<meta http-equiv="content-type" content="text/html; charset=utf-8" />

Link to comment
Share on other sites

  • 3 weeks later...

I know this is late and not "WHMCS" specific, but if you have 2.0.3 of the Integrator the characters should be translated better. The issue does have to do with the fact that Joomla uses utf-8 but with WHMCS you can use any character encoding you wish. Some characters don't have a matching utf8 translation, so when you view WHMCS with utf8 but have characters from another set, the browser gets confused.

 

Anyway, for most character sets a translation pack is included in 203, so it does attempt to translate those over.

Link to comment
Share on other sites

  • 4 weeks later...

I have the same problem.

The browser detects the character encoding as Western instead of UTF-8, BUT as far as I can see only on two pages:

 

/clients/cart.php?a=complete

and

/clients/clientarea.php?action=productdetails

 

Very very weird. And what makes it even weirder is that I have the same problem with the default WHMCS template. So it doesn't seem to be a J!WHMCS Integrator problem.

 

Has anyone found a solution for this yet?

 

/E

Link to comment
Share on other sites

I have the same Problem as Eminos. Hope also for a Solution :(

 

Hello, I finally fixed it by removing the empty space in the tpl files.

 

SO no Dbase conversion was needed. :D

 

It seems that somehow the spaces entered in the tpl and language files causes these weird characters.

 

SO look for the text in the tpl and language file you are using and remove the spaces behind the :.

 

That should do the trick.

Link to comment
Share on other sites

Hello, I finally fixed it by removing the empty space in the tpl files.

 

SO no Dbase conversion was needed. :D

 

It seems that somehow the spaces entered in the tpl and language files causes these weird characters.

 

SO look for the text in the tpl and language file you are using and remove the spaces behind the :.

 

That should do the trick.

 

Well this is wild. Crazy. Wicked.

It actually worked on the order confirmation page. I just removed all the empty line breaks in the tpl file. But I can't get the product details page to work. Do I really need to modify the language file aswell?

 

If someone's got a working clientareaproductdetails.tpl from WHMCS 4.2.1 please PM it to me :)

 

And thanks mischa1 for working it out for us.

 

---

[EDIT]

 

It's something really crazy going on. Doesn't someone from the WHMCS staff have ANY clue regarding this?

 

I deleted all the language smarty code in the clientareaproductdetails.tpl, to exclude loading of language strings - Didn't help.

Removed EVERYTHING from clientareaproductdetails.tpl (blank file 0kb) - Didn't help.

Removed everything from the footer.tpl - Didn't help.

Removed all the emtpy line breakes from header.tpl - Didn't help.

.. I still got the fuzzy characters in the header menu.

 

Really really weird.

Please help :)

 

/E

 

/E

Edited by Eminos
Link to comment
Share on other sites

Well this is wild. Crazy. Wicked.

It actually worked on the order confirmation page. I just removed all the empty line breaks in the tpl file. But I can't get the product details page to work. Do I really need to modify the language file aswell?

 

If someone's got a working clientareaproductdetails.tpl from WHMCS 4.2.1 please PM it to me :)

 

And thanks mischa1 for working it out for us.

 

---

[EDIT]

 

It's something really crazy going on. Doesn't someone from the WHMCS staff have ANY clue regarding this?

 

I deleted all the language smarty code in the clientareaproductdetails.tpl, to exclude loading of language strings - Didn't help.

Removed EVERYTHING from clientareaproductdetails.tpl (blank file 0kb) - Didn't help.

Removed everything from the footer.tpl - Didn't help.

Removed all the emtpy line breakes from header.tpl - Didn't help.

.. I still got the fuzzy characters in the header menu.

 

Really really weird.

Please help :)

 

/E

 

/E

 

 

Did you use the right tpl files?

Editing it in the wrong template set would not fix it :-)

Link to comment
Share on other sites

Did you use the right tpl files?

Editing it in the wrong template set would not fix it :-)

 

Of course I edited the right template files. I saw the changes. As I said I deleted ALL content from the product details tpl file, I just had the header and footer, still didn't help.

Link to comment
Share on other sites

  • WHMCS CEO

I suspect this is the result of you saving the file with the wrong encoding. Make sure you save it with the encoding type "UTF-8 without BOM" not just "UTF-8" as that is just the bytecode character of utf that you are seeing.

 

To gOOvER, no it's not a bug.

 

Matt

Link to comment
Share on other sites

Glad you're trying to help Matt. Thanks.

 

But I'm not sure about that UTF-8 no BOM thing.

I use the PSPad Editor for editing files and WinSCP for transfering via SSH.

In accordance to PSPad manual it should save the files without BOM by default (I also checked the setting to make sure).

 

I tried EmEditor as well, where I saved as UFT-8 without Signature.

 

I tried both text and binary upload.

 

No go.

 

And I tried all above for header, footer and that problematic productdetails template.

 

I also tried to reupload the ORIGINAL default template clientareaproductdetails.tpl.

 

Still the same problem.

 

---

 

Please give further instructions so that we can crack this one!

Link to comment
Share on other sites

I have identified the source of my problem to the ispCP server module.

If I delete that module file, or change the server module, everything is fine.

 

I have contacted the author of the ispCP module.

 

/E

Link to comment
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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated