Online Reservation System:
Software, database & hosting

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!

 in the United States (Chicago, IL): 1 (815) 526-7037, Fax (in Germany) +49 30 32 70 18 91

service@bitpalace.com 

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

Cheap web space for less than 1 US$/month 

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

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

 

FAQ – frequently asked questions 

 

Reservation system (reservation server) in selected countries

Kiribati

Austria

Cameroon

Guinea

Pakistan

Colombia

Cuba

Antigua and Barbuda

Panama

Papua New Guinea

Jordan

Argentina

Costa Rica

Australia

Germany

Bahamas

Lesotho

Barbados

Belize

Paraguay

Tuvalu

Honduras

Peru

Madagascar

Bolivia

Botswana

Malawi

Chile

Philippines

India

Malta

Puerto Rico

Rwanda

Saint Kitts and Nevis

Samoa

Marshall Islands

Saint Vincent and the Grenadines

Zambia

Jamaica

Mauritius

Saint Lucia

Dominican Republic

Liberia

Switzerland

Mexico

Canada

Dominican Republic

Micronesia, Federated States of

Seychelles

Namibia

Ecuador

Sierra Leone

El Salvador

Fiji

Singapore

Gambia

Solomon Islands

Nauru

Spain

New Zealand

Sudan

Swaziland

Nicaragua

Nigeria

South Africa

Kenya

Ghana

Tanzania, United Republic of

Tonga

Guyana

Trinidad and Tobago

Uganda

Palau

Uruguay

Venezuela

Ireland

Grenada

Guatemala

United Kingdom

Zimbabwe

 

"Reservation System": reservation software, reservation program, reservation application, software for maintaining reservations, reservation server, schedule, scheduler, occupancy plan, timetable, lending software / issuing desk administration, vehicle pool, conference room schedule.

 in the United States (Chicago, IL): 1 (815) 526-7037 •  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