LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Writing HTML pages in cyrillic (https://www.linuxquestions.org/questions/linux-newbie-8/writing-html-pages-in-cyrillic-478909/)

xpucto 08-30-2006 04:56 PM

Writing HTML pages in cyrillic
 
Hi!

I'm trying to write some HTML pages in bulgarian using cyrillic alphabet. It works fine when I use a CMS, but doesn't work when I write the pages myself using an editor. When I use for example Kedit, the letters are correctly written in cyrillic. When I look the result on a web browser (which can read cyrillic), I only get ????????? every where. I also tried with Quanta, but I get the same result: writing goes fine, when I click on preview, I only get ?????????.

I tried with charset=windows-1251 and with charset=utf-8.

Hier is an example of an html page of mine:
Quote:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html dir="ltr" lang="bg" xmlns="http://www.w3.org/1999/xhtml" xml:lang="bg">
<head>
<title>Мила Родино</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<html>
<h1>До цкоро!</h1><br>
Документация на български език
</html>
I Only got it write with open office but I would like to work with a simple editor in order to do my layout myself.
here is the code from open office:
Quote:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=iso-8859-15">
<TITLE></TITLE>
<META NAME="GENERATOR" CONTENT="OpenOffice.org 1.1.0 (Linux)">
<META NAME="CREATED" CONTENT="20060830;23573000">
<META NAME="CHANGED" CONTENT="20060831;1300">
</HEAD>
<BODY LANG="bg-BG" DIR="LTR">
<P ALIGN=CENTER><B>Добре!</B></P>
<P ALIGN=CENTER><B>И сега?</B></P>
<P><BR><BR>
</P>
<P><BR><BR>
</P>
</BODY>
</HTML>
How may I work with a simple editor in order to have cyrillic letters in the source code and not those &#1089?!
thanks.

bigrigdriver 08-30-2006 06:09 PM

I just tried both of your code sets. The first works; the second fails.

charset=iso-8859-15 is for Finnish; charset=iso-8859-5 is for Cryllic.

xpucto 09-03-2006 07:00 AM

I made quite a lot of test and I realized that the problem comes not from the code but from the editor itself. I installed every components for bulgarian in KDE but it doesn't help. The only working solution so far is the use of mozilla composer.


All times are GMT -5. The time now is 12:52 AM.