Software Development:
Individual Programming

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 Antigua and Barbuda: +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

Cheap web space for less than 1 US$/month 

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 

 

FAQ – frequently asked questions 

 

Software development (programming, programmers) in selected countries

Austria

Kenya

Guyana

Palau

Cuba

Lesotho

Argentina

Papua New Guinea

Paraguay

Cameroon

Australia

Germany

Bahamas

Dominican Republic

Barbados

Liberia

Belize

Bolivia

Peru

Uganda

India

Philippines

Malawi

Botswana

Chile

Malta

Costa Rica

Puerto Rico

Ireland

Marshall Islands

Rwanda

Saint Kitts and Nevis

Saint Vincent and the Grenadines

Saint Lucia

Mauritius

Zambia

Samoa

Jordan

Mexico

Switzerland

Dominican Republic

Madagascar

Seychelles

Micronesia, Federated States of

Kiribati

Ecuador

Namibia

Sierra Leone

Nauru

El Salvador

Singapore

Fiji

Gambia

Solomon Islands

Ghana

Spain

New Zealand

Sudan

Nicaragua

Swaziland

South Africa

Nigeria

Pakistan

Tanzania, United Republic of

Colombia

Grenada

Tonga

Trinidad and Tobago

Honduras

Tuvalu

Uruguay

Panama

Venezuela

United States

Jamaica

Canada

Guatemala

Guinea

United Kingdom

Zimbabwe

 

"software development": programmer, programming, database design, interface, software developers, outsourcing, insourcing, off shore, program development, documentation, software manual, optimization, optimizing, scripting, script, revise program, revision, document software, prices for programming, Windows, Unix (z.B. Solaris, Linux, FreeBSD), Assembler, C, C++, JAVA, PHP, JavaScript & AJAX, VisualBasic, Cobol, Informix 4GL, SQL/MySQL, ADABAS, MS Access, Oracle, ARIS, Prozess 2000, Visio, MS Office (Word, Excel PowerPoint, MS Project), Automation mit VisualBasic, MS Windows Server und Clients, SAP R/3, Macromedia MX Studio, MS Frontpage, MS Expression Web, Smarty Template Engine, Joomla, Redaxo, osCommerce, OXID eSales Community Edition, OrgaMAX Web Export.

  from Antigua and Barbuda: +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