Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

in my standard-shop i see html-code


Peter Huber

Recommended Posts

Posted

In my IE-browser some text has HTML-Code, e.g. (i inserted some spaces myself):

 

"Fehler bei der & U u m l ;berp & u u m l ;fung der Kreditkarte! "

 

instead of "Fehler bei der ?berpr?fung der Kreditkarte! "

 

or: "Die ersten 4 Ziffern Ihrer Kreditkarte sind: 1234< b r >Wenn diese Angaben stimmen, wird dieser Kartentyp leider nicht akzeptiert.< b r >Bitte korrigieren Sie Ihre Angaben gegebenfalls. "

 

The < B R > should not be seen!!!

 

How can I avoid this???

Posted

a few things to keep in mind about HTML:

1) <br> means break. It's a carriage return.

2) if you need more than one space, use the correct code of  

3) if you need exact formatting, use the <pre> tag.

 

HTH

 

-jared

Posted

Have you set German as your default language? If you have not then the default character code will be english.

 

If you have set German as your default language, where is this code being entered?

 

If this code is in a file at the level of includes/languages/german/, and it is one of the mainly text files (privacy, conditions etc) then you should not have this problem. If you are inserting it into a page within php coding then you need to break it up properly, else the html code will show (as is happening)

 

e.g.

' haben wir eine Anfrage zur Passworterneuerung erhalten.' . "\n\n" . 'Ihr neues Passwort f?r \''

 

add a break (<br>) command to it like so

 

' haben wir eine Anfrage zur Passworterneuerung erhalten.' . "\n\n" . '<br>' . 'Ihr neues Passwort f?r \''

 

Vger

 

Not sure I explained that too well??

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...