473,491 Members | 2,430 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 6596
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
7230
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
6282
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
30305
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
36954
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
2306
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
2926
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
8008
by: Nikolay Petrov | last post by:
How can I convert DOS cyrillic text to Unicode
1
2582
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
2057
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
7115
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
7154
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7190
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
5451
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,...
1
4881
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
3086
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1392
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
633
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
280
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.