Ask a Question related to PHP Development, Design and Development.
-
lallous #1
Re: Help with arabic language
Hello Andy
Adding this header worked also with edit boxes.
One more question, will the data always be stored in the database as:Why not as ascii characters like when you save a file in notepad/utf-8> >اثممخ صخقمي
and then hexview it?
--
Elias
lallous Guest
-
Arabic language
Is there any way to work with arabic language in InDesign CS? I need sometimes to write text in arabic and I HATE to do it in MS Word or (even... -
how to embed arabic fonts in director so that arabic texts will be shown
how to embed arabic fonts in director so that arabic texts will be shown normally in their format not in symbols -
#25051 [Opn->WFx]: translating between gettext language identifiers and 'Accept-Language' ones
ID: 25051 Updated by: sniper@php.net Reported By: wouter at grep dot be -Status: Open +Status: Wont... -
How to prevent the language icon from disappearing and a language switching delay?
What is wrong with my question since nobody answers it? How to improve the question? "Dmitriy Kopnichev" <kopn@hotbox.ru> wrote in message... -
Language and Direction real GURU needed! (Hebrew and maybe arabic) CR or Charset issue?
Hello all! I wonder if the following subject is a Crystal issue or what? When ever I have a field that includes hebrew(-RTL language) and numbers... -
Andy Hassall #2
Re: Help with arabic language
On 1 Apr 2004 21:07:54 -0800, [email]lallous@lgwm.org[/email] (lallous) wrote:
No, not if you've set the headers correctly so that the browser sends UTF-8 in>Adding this header worked also with edit boxes.
>
>One more question, will the data always be stored in the database as:>Why not as ascii characters like when you save a file in notepad/utf-8>> >اثممخ صخقمي
>and then hexview it?
the first place, rather than trying to send HTML encoded character entities
because they're not available in the HTML document's character set.
e.g. the following:
<?php header("Content-type: text/html;charset=utf-8"); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>test</title>
</head>
<body>
<form method="post" action="">
<input type="text" name="whatever">
<input type="submit">
</form>
<pre>
<?php
if (isset($_POST['whatever']))
{
var_dump($_POST['whatever']);
for ($i=0; $i<strlen($_POST['whatever']); $i++)
{
$c = ord($_POST['whatever']{$i});
printf("%-3d %08b<br>", $c, $c);
}
}
?>
</pre>
</body>
</html>
Post some Unicode to this, and you can see that it's not HTML encoded it.
--
Andy Hassall <andy@andyh.co.uk> / Space: disk usage analysis tool
[url]http://www.andyh.co.uk[/url] / [url]http://www.andyhsoftware.co.uk/space[/url]
Andy Hassall Guest



Reply With Quote

