473,390 Members | 1,272 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,390 software developers and data experts.

cant insert cyrillic or greek charachters into mssql db

i read out an utf-8 xml file with greek or russian/cyrillic
characters. i can display it in the browser but if i insert data into
an mssql database -field is nvarchar(4000)- i only see ??? or
incorrect characters.

has anyone expierence with unicode characters and mssql databses?

Jul 16 '07 #1
5 6590
eisenstein wrote:
i read out an utf-8 xml file with greek or russian/cyrillic
characters. i can display it in the browser but if i insert data into
an mssql database -field is nvarchar(4000)- i only see ??? or
incorrect characters.
This doesn't seem to be a PHP question. Try one of the microsoft.* groups.

--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.12-12mdksmp, up 26 days, 11:22.]

demiblog 0.2.0 Released
http://tobyinkster.co.uk/blog/2007/0...emiblog-0.2.0/
Jul 17 '07 #2
On 17 Jul., 09:42, Toby A Inkster <usenet200...@tobyinkster.co.uk>
wrote:
eisenstein wrote:
i read out an utf-8 xml file with greek or russian/cyrillic
characters. i can display it in the browser but if i insert data into
an mssql database -field is nvarchar(4000)- i only see ??? or
incorrect characters.

This doesn't seem to be a PHP question. Try one of the microsoft.* groups.

--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.12-12mdksmp, up 26 days, 11:22.]

demiblog 0.2.0 Released
http://tobyinkster.co.uk/blog/2007/0...emiblog-0.2.0/
this is a php question: i use php with ms sql server and use php
functions to connect to the ms sql server

Jul 17 '07 #3
eisenstein wrote:
On 17 Jul., 09:42, Toby A Inkster <usenet200...@tobyinkster.co.uk>
wrote:
>eisenstein wrote:
>>i read out an utf-8 xml file with greek or russian/cyrillic
characters. i can display it in the browser but if i insert data into
an mssql database -field is nvarchar(4000)- i only see ??? or
incorrect characters.
This doesn't seem to be a PHP question. Try one of the microsoft.* groups.

--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.12-12mdksmp, up 26 days, 11:22.]

demiblog 0.2.0 Released
http://tobyinkster.co.uk/blog/2007/0...emiblog-0.2.0/

this is a php question: i use php with ms sql server and use php
functions to connect to the ms sql server
That doesn't mean it's a php question.

You use HTML also - it could be an HTML question. You use mssql - it
could be an mssql question. You use Apache or IIS - it could be an
Apache or IIS question....

I'll bet you even use a keyboard and mouse. Hey, it could be a keyboard
or mouse question!

The point is - just because you use PHP doesn't mean it's a PHP
question. And in this case it isn't. There are a lot of other
possibilities. You need to further determine exactly where the problem
is.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Jul 17 '07 #4
On Jul 17, 3:24 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
eisenstein wrote:
On 17 Jul., 09:42, Toby A Inkster <usenet200...@tobyinkster.co.uk>
wrote:
eisenstein wrote:
i read out an utf-8 xml file with greek or russian/cyrillic
characters. i can display it in the browser but if i insert data into
an mssql database -field is nvarchar(4000)- i only see ??? or
incorrect characters.
This doesn't seem to be a PHP question. Try one of the microsoft.* groups.
--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.12-12mdksmp, up 26 days, 11:22.]
demiblog 0.2.0 Released
http://tobyinkster.co.uk/blog/2007/0...emiblog-0.2.0/
this is a php question: i use php with ms sql server and use php
functions to connect to the ms sql server

That doesn't mean it's a php question.

You use HTML also - it could be an HTML question. You use mssql - it
could be an mssql question. You use Apache or IIS - it could be an
Apache or IIS question....

I'll bet you even use a keyboard and mouse. Hey, it could be a keyboard
or mouse question!

The point is - just because you use PHP doesn't mean it's a PHP
question. And in this case it isn't. There are a lot of other
possibilities. You need to further determine exactly where the problem
is.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attglobal.net
==================
I agree. Especially that most probably the problem lies in your
default db character set (encoding) setting. Most probably MS uses
latin or something like that, so you'll have to configure it being
unicode (utf8 or whatever you use in your file). However, if you used
postgres for example, you could be armed with pg_set_client_encoding
and pg_client_encoding functions which would probably be able to help
you solve the problem. Mssql, ... well, seems to me PHP is not
equipped to do the same with that. That's why I never use it - except
when working .net or similar.

Jul 18 '07 #5
Darko wrote:
On Jul 17, 3:24 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
>eisenstein wrote:
>>On 17 Jul., 09:42, Toby A Inkster <usenet200...@tobyinkster.co.uk>
wrote:
eisenstein wrote:
i read out an utf-8 xml file with greek or russian/cyrillic
characters. i can display it in the browser but if i insert data into
an mssql database -field is nvarchar(4000)- i only see ??? or
incorrect characters.
This doesn't seem to be a PHP question. Try one of the microsoft.* groups.
--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.12-12mdksmp, up 26 days, 11:22.]
demiblog 0.2.0 Released
http://tobyinkster.co.uk/blog/2007/0...emiblog-0.2.0/
this is a php question: i use php with ms sql server and use php
functions to connect to the ms sql server
That doesn't mean it's a php question.

You use HTML also - it could be an HTML question. You use mssql - it
could be an mssql question. You use Apache or IIS - it could be an
Apache or IIS question....

I'll bet you even use a keyboard and mouse. Hey, it could be a keyboard
or mouse question!

The point is - just because you use PHP doesn't mean it's a PHP
question. And in this case it isn't. There are a lot of other
possibilities. You need to further determine exactly where the problem
is.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attglobal.net
==================

I agree. Especially that most probably the problem lies in your
default db character set (encoding) setting. Most probably MS uses
latin or something like that, so you'll have to configure it being
unicode (utf8 or whatever you use in your file). However, if you used
postgres for example, you could be armed with pg_set_client_encoding
and pg_client_encoding functions which would probably be able to help
you solve the problem. Mssql, ... well, seems to me PHP is not
equipped to do the same with that. That's why I never use it - except
when working .net or similar.
Actually, MySQL handles it just fine. But you have to set the
appropriate charset. Also, you have to have the correct charset in your
HTML, for instance.

Lots of possibilities - none of them PHP.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Jul 18 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: rj | last post by:
When I try to insert a row in the SQL server. I received these warnings : Warning: mssql_query() : message: Invalid object name 'transactions'. (severity 16) in...
35
by: Philipp Lenssen | last post by:
Does anybody have experience displaying Cyrillic in common browsers with common settings? I found the following page researching the topic, however I cannot display all characters in the table...
7
by: Paul Gorodyansky | last post by:
Hi, Say I have a text in my TEXTAREA box - 01234567890 I want - using script - insert say "abc" in the middle. Works almost OK in Internet Explorer (with one problem) based on their example...
14
by: Andre | last post by:
Hello Can anyone help me translate this from access so that it can work in mssql (i need to get next value, but cannot use identity as if row is deleted, another must get new next column number...
4
by: Kiki | last post by:
Hello, I'm trying to find a way to display text in greek or cyrillic in a .NET page using text stored in XML format. I'm getting the greek words displayed like this: "Διάφορα". I'm no expert but...
3
by: Beast | last post by:
I am having a hard time inserting cyrillic data into an access db using asp. Does someone know how to encode the data so jibberish does not I have <meta http-equiv="Content-Type"...
10
by: Nikolay Petrov | last post by:
How can I convert DOS cyrillic text to Unicode
1
by: timdavis919 | last post by:
I'm trying to build some Russian web pages using Perl and MySQL. Toward that end, I have created a simple test case, which does not seem to work. Any help would be appreciated. I can...
5
by: Siegfried Heintze | last post by:
Can someone point me to an example of a little program that emits non-ascii Unicode characters (Russian or Chinese perhaps)? The unicode Russian/Cyrillic alphabet starts at 0x410. Is this possible...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.