Cheap Web Space, Domain Name:
Web Space With E-Mail, PHP/MySQL.

How can I change the PHP default character set without editing php.ini?

Question: 

Searching …

 

Unfortunately nothing found on "".

Premium support for Bitpalace web hosting customers only!

 from Saint Kitts and Nevis: +49 30 32 70 18 92, Fax (in Germany) +49 30 32 70 18 91

service@bitpalast.net 

Skype: bitpalast

One moment please … your browser is loading the page.

 

 

Symptom

Your PHP pages display mutated vowels and special characters wrong.

 

Cause

Your PHP scripts are missing explicit commands that define the character set used for script outputs. Therefore the default setting is used (normally UTF-8). Your output however needs a different setting, e.g. ISO-8859-1.

 

Solution

The default character set can be defined in the php.ini file. In shared hosting web space accounts you cannot access php.ini. As an alternative you can configure your .htaccess file. You can either use the one that is already present in your web space's root directory or you can simply create a new one.

Add these two lines to your .htaccess file:

AddDefaultCharset [name of character set]
php_value default_charset [name of character set]

Instead of "[name of character set]" enter the desired character set that shall be used for PHP output by default, e.g. ISO-8859-1:

AddDefaultCharset ISO-8859-1
php_value default_charset ISO-8859-1

 

Overview of frequently asked questions 

 

 

 


 

Additional Services

Starter Server: Affordable web server from  2.25 US$ () /month with PHP, database and many more 

Online Reservation System: Occupancy & vacancy schedule for any ressources (vehicles, sports facilities …) & guest houses, holiday apartments …  1.05 US$ () /month 

Software development: Development of database applications, programming and revision of computer programs & scripts  18.90 US$ () /hour 

 

FAQ – frequently asked questions 

 

Colombia

Austria

Canada

Guinea

Pakistan

Cuba

Lesotho

Antigua and Barbuda

Panama

Papua New Guinea

Jordan

Argentina

Costa Rica

Australia

Germany

Bahamas

Liberia

Barbados

Belize

Paraguay

Uganda

Honduras

Peru

Malawi

Bolivia

Botswana

Malta

Chile

Philippines

India

Marshall Islands

Puerto Rico

Rwanda

Saint Vincent and the Grenadines

Saint Lucia

Mauritius

Zambia

Samoa

Jamaica

Mexico

Switzerland

Dominican Republic

Madagascar

Seychelles

Micronesia, Federated States of

Kenya

Dominican Republic

Namibia

Sierra Leone

Nauru

Ecuador

Singapore

El Salvador

Fiji

Solomon Islands

Gambia

Spain

Sudan

New Zealand

Swaziland

South Africa

Nicaragua

Nigeria

Tanzania, United Republic of

Kiribati

Ghana

Tonga

Trinidad and Tobago

Guyana

Tuvalu

Uruguay

Palau

Venezuela

United States

Ireland

Cameroon

Grenada

Guatemala

United Kingdom

Zimbabwe

 

"Cheap Web Space": Affordable web space, cheap web server, low-cost webserver, low-price web servers: fast web server / small web server (cheap web space). Web server for private homepages / small website projects.

  from Saint Kitts and Nevis: +49 30 32 70 18 92 •  GmbH, Sensburger Allee 27, D-14055 Berlin (Germany)
Your purchase is tax-free, because you order from a non-EU country. © 2024  GmbH. All rights reserved. and the logo are registered trademarks of GmbH. For photo credits see imprint.

Imprint Privacy policy Sitemap