PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Framework Forms Convetr from utf

Reply

Convetr from utf

 
Thread Tools Rate Thread
Old 11-12-2005, 09:09 PM   #1
=?Utf-8?B?TWFyZWsgRw==?=
Guest
 
Posts: n/a
Default Convetr from utf


Hi I am trouble with converting from one encoding to second . How I convert
string in utf to 1250 ? I have string in the utf and the database want 1250 .
If I insert the string to database the string is bad ...
  Reply With Quote
Old 11-12-2005, 09:26 PM   #2
Jon Skeet [C# MVP]
Guest
 
Posts: n/a
Default Re: Convetr from utf

Marek G <MarekG@discussions.microsoft.com> wrote:
> Hi I am trouble with converting from one encoding to second . How I convert
> string in utf to 1250 ? I have string in the utf and the database want 1250 .
> If I insert the string to database the string is bad ...


The string itself is always in Unicode. If the database wants CP1250,
the driver should be encoding it.

See http://www.pobox.com/~skeet/csharp/...ingunicode.html

--
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
  Reply With Quote
Old 11-12-2005, 09:40 PM   #3
=?Utf-8?B?TWFyZWsgRw==?=
Guest
 
Posts: n/a
Default Re: Convetr from utf

driver is ado.net from nexusdb ...

"Jon Skeet [C# MVP]" wrote:

> Marek G <MarekG@discussions.microsoft.com> wrote:
> > Hi I am trouble with converting from one encoding to second . How I convert
> > string in utf to 1250 ? I have string in the utf and the database want 1250 .
> > If I insert the string to database the string is bad ...

>
> The string itself is always in Unicode. If the database wants CP1250,
> the driver should be encoding it.
>
> See http://www.pobox.com/~skeet/csharp/...ingunicode.html
>
> --
> Jon Skeet - <skeet@pobox.com>
> http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
> If replying to the group, please do not mail me too
>

  Reply With Quote
Old 11-12-2005, 09:50 PM   #4
=?Utf-8?B?TWFyZWsgRw==?=
Guest
 
Posts: n/a
Default Re: Convetr from utf

And I have trouble with this after read ....

"Jon Skeet [C# MVP]" wrote:

> Marek G <MarekG@discussions.microsoft.com> wrote:
> > Hi I am trouble with converting from one encoding to second . How I convert
> > string in utf to 1250 ? I have string in the utf and the database want 1250 .
> > If I insert the string to database the string is bad ...

>
> The string itself is always in Unicode. If the database wants CP1250,
> the driver should be encoding it.
>
> See http://www.pobox.com/~skeet/csharp/...ingunicode.html
>
> --
> Jon Skeet - <skeet@pobox.com>
> http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
> If replying to the group, please do not mail me too
>

  Reply With Quote
Old 11-12-2005, 11:43 PM   #5
Jon Skeet [C# MVP]
Guest
 
Posts: n/a
Default Re: Convetr from utf

Marek G <MarekG@discussions.microsoft.com> wrote:
> And I have trouble with this after read ....


Have you followed the steps in the link I referred to? Do you have a
short but complete program that demonstrates the problem?

--
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
  Reply With Quote
Old 12-12-2005, 11:07 AM   #6
=?Utf-8?B?TWFyZWsgRw==?=
Guest
 
Posts: n/a
Default Re: Convetr from utf

In the code I have :
"FĂš ÄŚeská LĂ*pa - ved. Ĺ™editel",but in the database is
F? ?esk? L?pa - prac. ?editel

"Jon Skeet [C# MVP]" wrote:

> Marek G <MarekG@discussions.microsoft.com> wrote:
> > And I have trouble with this after read ....

>
> Have you followed the steps in the link I referred to? Do you have a
> short but complete program that demonstrates the problem?
>
> --
> Jon Skeet - <skeet@pobox.com>
> http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
> If replying to the group, please do not mail me too
>

  Reply With Quote
Old 12-12-2005, 06:03 PM   #7
Jon Skeet [C# MVP]
Guest
 
Posts: n/a
Default Re: Convetr from utf

Marek G <MarekG@discussions.microsoft.com> wrote:
> In the code I have :
> "F? ?esk? L?pa - ved. ?editel",but in the database is
> F? ?esk? L?pa - prac. ?editel


Sorry, I'm not sure which of my questions that was an answer to. (It
also doesn't help that Usenet doesn't carry Unicode very well - it
would help if you'd give the hex value for each of the Unicode
characters you're interested in.)

--
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off