Re: Codepage mismatch I think

From: Steve Kass (skass_at_drew.edu)
Date: 05/07/04


Date: Fri, 07 May 2004 17:53:37 -0400

I'm not quite sure what your question is. Do you want to eliminate all
such characters from your database as a workaround for the problem with
your report writer? You certainly could do that:

update yourTable set
  wineName = replace(replace(wineName, nchar(0x0107), N'c'),
nchar(0x0106), N'C')

This should be ok if the collation on the column is case-sensitive. If
it is not, you can get by with the lower-case substitution if you have
no capital C-acute letters, or you can try adding collate
your_base_collation_CS_AS to the parameters of the replace operation.

Unless you are using a code page the supports ć, you won't be able to
specify that character without the N prefix, and this is expected behavior.

If you can explain what you want to fix, feel free to ask another
question. It sounds to me like your report writer has a bug, and one
possibility is to address the issue with that vendor. By the way, the ć
character is used in some Eastern European languages, but is not in the
French or Italian alphabets, as far as I know.

Steve Kass
Drew University

johndotfoxley@laywheelerdotcom wrote:

>I am running SQL server 7 on an NT 4 server here in the UK
>which has a table containing French and Italian wine
>names. Most of the characters with accents are recognised
>fine but not the letter c with an acute (/) accent on it
>(the database records are populated by typing it out in
>Word and pasting it into the database table). If I use
>Query Analyser to then search for this character it does
>not find it unless I precede the search string with the
>letter N, as in like N'%c%' (where the c has an acute
>accent). Then it finds all occurences of this in the
>table. This has other implications with our report writer
>(compiles sql code) as the report fails when encountering
>a record with this character. I think it is a codepage mis-
>match somewhere but don't know what I need to do to fix it.
>
>



Relevant Pages

  • Re: help needed
    ... Whether you use pointer arithmetic or array notation, set up the database to look like a two-dimensional array of chars; ... Get the first character of the database entry. ... Of it is NULL go on to the next database entry. ... a NULL password will pass unless all database entries contain valid passwords. ...
    (comp.dsp)
  • Codepage mismatch I think
    ... I am running SQL server 7 on an NT 4 server here in the UK ... fine but not the letter c with an acute accent on it ... Query Analyser to then search for this character it does ... This has other implications with our report writer ...
    (microsoft.public.sqlserver.mseq)
  • Re: JSP Internationalization
    ... fixed it for me was to make sure that my Oracle database was in the ... correct character set, Oracle 9i did not use the standard UTF-8 unless ... I still get question marks. ... The native resource file is saved as UTF 8. ...
    (comp.lang.java.programmer)
  • Re: Syntax Problem
    ... If we can identify the specific character that is the delimiter for the ... Can you copy and paste the special delimiter character into a newsgroup post ... >> Oae is the extension requested by the College Board of Examiners in New ... >>> The Database Name argument is the database you are exporting to. ...
    (microsoft.public.access.macros)
  • Re: [Dialog] Cracking Richard
    ... in the database, ... Some people use special formats for sigs or even set sigs to be ... I can see in the hex editor that the control character that precedes ... search string contains regular expressions ...
    (news.software.readers)