Jump to content

[SOLVED] Bulgarian Characters in php


solon

Recommended Posts

Hey guys i need to 'echo' Bulgarian characters into one of my websites. It works perfectly in HTML but when the file is .php i get any other type of character than Bulgarian. If anyone now's the solution i would be grateful.

Btw i used both windows-1251 and iso-8859-5 encoding as well as utf-8!

 

Thanks in advance!

 

Link to comment
Share on other sites

Well what is the right way?

i have this:

file.html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
<title></title>
</head>
<body>
<div id="div"><img src="logo.jpg" alt="" /> 
<h1>Сайта е в процес на разработка!</h1>
<p>моля посетете сайта:</p>
<a href="http://www.greenvillage-sofia.com"></a>

<p><strong>Адрес:</strong>
1220 София, ,
бул. „И,
Бизнес център Сафко, ет. 3</p>
<p><strong>Тел:</strong> +359 904, 931 56</p>
<p><strong>Факс:</strong> +359 832 10 12</p>
<p><strong>Моб.:</strong> + 359 886 60 ; + 359 0 78 86</p>
<p><strong>E-mail:</strong> </p>
Това е страницата на Лотарията. Трябва да изберете от 5 (пет)
до 20 (двадесет) числа от първата кутия. Освен това трябва да изберете най-малко 1 (едно) число от втората кутия.
</div>
</body>
</html>

and i include it in :

 

file.php

<?php
include("file.html");

?>

 

Note that when i browse the html file it works fine!

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.