473,322 Members | 1,431 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Insert data in win1251 encoding to base with utf8 encoding

YuriyRusinov
Hello !

I have database linkdb with UTF8 encoding. Script
Expand|Select|Wrap|Line Numbers
  1. \encoding WIN1251
  2.  
  3. begin;
  4.  
  5. \i ./database_schema.sql
  6.  
  7. commit;
  8.  
tries to set data with WIN1251 encoding and fails with error psql:./database_schema.sql:14: PANIC: ERRORDATA_STACK_SIZE exceeded. Data in database_schema.sql script are in WIN1251. Operational system Debian Linux 2.6.18-5-686, Postgresql server 8.1.9, locale
Expand|Select|Wrap|Line Numbers
  1. LANG=ru_RU.KOI8-R
  2. LC_CTYPE="ru_RU.KOI8-R"
  3. LC_NUMERIC=POSIX
  4. LC_TIME=POSIX
  5. LC_COLLATE="ru_RU.KOI8-R"
  6. LC_MONETARY="ru_RU.KOI8-R"
  7. LC_MESSAGES=POSIX
  8. LC_PAPER="ru_RU.KOI8-R"
  9. LC_NAME="ru_RU.KOI8-R"
  10. LC_ADDRESS="ru_RU.KOI8-R"
  11. LC_TELEPHONE="ru_RU.KOI8-R"
  12. LC_MEASUREMENT="ru_RU.KOI8-R"
  13. LC_IDENTIFICATION="ru_RU.KOI8-R"
  14. LC_ALL=
  15.  
What I have to do in order to set these data into database ?

Thanks in advance.
Yuriy Rusinov.
Sep 20 '07 #1
0 2754

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Jimski | last post by:
Hello all, I am having a problem where I get an error message when I call FlushFinalBlock when decrypting my encrypted text. I am using the Rijndael algorithm. The error message is "Length...
12
by: Adam J. Schaff | last post by:
I am writing a quick program to edit a binary file that contains file paths (amongst other things). If I look at the files in notepad, they look like: ...
2
by: Steve Long | last post by:
Hello, I'm wondering if somebody can help me figure out how to decrypt data. I seem to be able to encrypt data but have not been able to decrypt the very data that I've encrypted. I know it's...
1
by: romiko2000 | last post by:
Hi Folks, I got a weird problem, I create an XMLWriter to post a document via the webrequest stream and after running a network trace, I notice the data is prefixed with 3 invalid characters! ...
1
by: jrs_14618 | last post by:
Hello All, This post is essentially a reply a previous post/thread here on this mailing.database.myodbc group titled: MySQL 4.0, FULL-TEXT Indexing and Search Arabic Data, Unicode I was...
3
by: tparks69 | last post by:
I am getting data from an FTP into a Stream object. Now I need to put this data into a string so I can manipulate it. Can anyone show me some example code?
0
by: deloford | last post by:
Hi This is going to be a question for anyone who is an expert in C# Text Encoding. My situation is this: I have a Sybase database which is firing back ISO-8559 encoded strings. I am unable to...
1
by: panos100m | last post by:
Hi I am using DB_dataobjects and pear . I noticed that for some of my tables my insert statement doesnt work correclty .. Those tableas are tables that i changed recently (i removed the space...
1
oranoos3000
by: oranoos3000 | last post by:
hi i have an error with enter record to table in database(mysql) structure of my table is as follow - phpMyAdmin SQL Dump -- version 2.11.6 -- http://www.phpmyadmin.net -- -- Host:...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.