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 ...

Re: Convetr from utf by Jon

Jon
Sun Dec 11 15:26:50 CST 2005

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/debuggingunicode.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

Re: Convetr from utf by MarekG

MarekG
Sun Dec 11 15:40:02 CST 2005

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/debuggingunicode.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
>

Re: Convetr from utf by MarekG

MarekG
Sun Dec 11 15:50:01 CST 2005

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/debuggingunicode.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
>

Re: Convetr from utf by Jon

Jon
Sun Dec 11 17:43:50 CST 2005

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

Re: Convetr from utf by MarekG

MarekG
Mon Dec 12 05:07:02 CST 2005

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
>

Re: Convetr from utf by Jon

Jon
Mon Dec 12 12:03:45 CST 2005

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