473,396 Members | 1,847 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,396 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 2762

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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.