#20962 [Opn->Fbk]: ibase_query don't work with varchar character set win1251
| From: | sniper@php.net | Date: | Thu, 12 Dec 2002 17:14:04 +0000 |
| Subject: | #20962 [Opn->Fbk]: ibase_query don't work with varchar character set win1251 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-27504@lists.php.net to get a copy of this message | ||
ID: 20962
Updated by: sniper@php.net
Reported By: hristo@teacher.com
-Status: Open
+Status: Feedback
Bug Type: InterBase related
Operating System: win 2000
PHP Version: 4.2.3
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2002-12-12 10:14:28] hristo@teacher.com
CREATE TABLE CATEGORIES (
CAT_ID INTEGER NOT NULL,
CYR_TEXT VARCHAR (100) character set WIN1251);
<?php
$any_cyrilic_text = 'òåêñò íà êèðèëèöà';
$update_stmt = "update categories set cyr_text='".$any_cyrilic_text."'
where cat_id=".$edit_id;
ibase_query($db_link, $update_stmt);
?>
after executing this code
Warning: InterBase: arithmetic exception, numeric overflow, or string
truncation Cannot transliterate character between character sets
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20962&edit=1