php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20962 ibase_query don't work with varchar character set win1251
Submitted: 2002-12-12 10:14 UTC Modified: 2002-12-14 09:58 UTC
From: hristo at teacher dot com Assigned:
Status: Not a bug Package: InterBase related
PHP Version: 4.2.3 OS: win 2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
18 + 14 = ?
Subscribe to this entry?

 
 [2002-12-12 10:14 UTC] hristo at teacher dot 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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-12-12 11:14 UTC] sniper@php.net
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
 [2002-12-14 09:52 UTC] hristo at teacher dot com
I'm sorry, but I fix my mistake.

$db_con = ibase_connect($HOST:$DB_PATH, $USER, $PASS, 'win1251');

not 
$db_con = ibase_connect($HOST:$DB_PATH, $USER, $PASS);

and it's OK
 [2002-12-14 09:58 UTC] derick@php.net
bogus then
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 10:01:26 2024 UTC