473,385 Members | 2,044 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How to insert characters like ä or ü in a PHP file

In the PHP file for the formmailer there is an error message that I can't get correct. It does not recognize the &uml code.

What I have is this message: 'Bitte ueberpruefen Sie die erforderlichen Felder'.

What I want to see is this: 'Bitte überprüfen Sie die erforderlichen Felder'.

Any suggestions on how to correct this in the PHP file, or elsewhere. Look here: http://ppbm5.com/Poffertjes-4.html and press the button 'Senden' at the bottom of the form to see what I mean.

The current line is: <label class='form_error_title'>Bitte ueberpruefen Sie die erforderlichen Felder</label>

Using &uml instead of the 'e' does not work. Must be missing something simple.
Nov 12 '10 #1
3 2956
Markus
6,050 Expert 4TB
The page displaying those characters needs to tell the browser to use a decent encoding. Use UTF-8 for your content-type header.

Expand|Select|Wrap|Line Numbers
  1.  
  2. <html xmlns="http://www.w3.org/1999/xhtml" lang="en" dir="ltr"> 
  3. <head> 
  4. <title>Chinese character - Wikipedia, the free encyclopedia</title> 
  5. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  6. </head>
  7.  
  8. <body>
  9. <?php
  10. echo "汉字 / 漢字;";
  11. ?>
  12. </body>
  13. </html>
  14.  
Nov 13 '10 #2
Thanks for the effort, but ultimately it was even simpler:

Use the code for ü like this: "&uuml;" or for ä like "&auml;" without the quotes of course. So basically it is:

& + the letter + uml; to give the letter with an umlaut.
Nov 13 '10 #3
Markus
6,050 Expert 4TB
Sure, but there aren't html entities for every foreign character.
Nov 14 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Jake | last post by:
Hello, I have a file, (either .jpg, .doc, etc.) how can I insert this file into sql server and retrieve it, instead of storing it in the folder. Thanks in advance. Jake
2
by: Melson | last post by:
Hi Can anyone help. How to insert the selected item in the listbox to the current location of the cursor in the notepad or other program. Thanks. Regards
9
by: anachronic_individual | last post by:
Hi all, Is there a standard library function to insert an array of characters at a particular point in a text stream without overwriting the existing content, such that the following data in...
7
by: Matt | last post by:
I am attempting to reformat a string, inserting newlines before certain phrases. For example, in formatting SQL, I want to start a new line at each JOIN condition. Noting that strings are...
10
by: electric_r | last post by:
Hallo, I have 2 questions: with php and mysql : 1) How can I insert a text file into a TEXT field of a table ? 2) How can I insert a microsoft word file into a BLOB field of a table ?
1
by: kundan0607 | last post by:
Hi all, How to insert csv file into clob column.
10
by: dreamy | last post by:
Can i ask how to insert a file into mysql? what the different between basename, getElementsByTagName, DOMdocument and $_FILES? how to apply it? thz.
1
by: dougancil | last post by:
I have a web page written in asp.net that is basically an upload button that does a bulk insert into a sql table. When a user presses an upload button, a .txt file is uploaded to a directory on...
1
by: gm000 | last post by:
hi i m trying to insert .csv file in ms sqlserver but its not working my cvs file data formate below is "12.204.8.120","12.204.8.151","214698104","214698135","VI","Virgin Islands,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.