473,486 Members | 2,476 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

illegal character

Hello,

while doing strings pattern matching we use '/377' character.
But this char is illegal for some Asian locales on Solaris.
For example, strcoll returns error because this character is outside
the domain of the collating sequence.

Which other character can be used instead?

Thanks.

Nov 14 '05 #1
5 4432
se*************@gmail.com wrote:
Hello,

while doing strings pattern matching we use '/377' character.
But this char is illegal for some Asian locales on Solaris.
For example, strcoll returns error because this character is outside
the domain of the collating sequence.

Which other character can be used instead?

Thanks.


strcmp() is locale-independent.

man regexp

shows you another powerful alternative.
--
Michael Tosch @ hp : com
Nov 14 '05 #2

our application work in different locales and what is why strcmp is not
acceptable for us.

Nov 14 '05 #3

our application works in different locales and what is why strcmp is
not acceptable for us.

Nov 14 '05 #4
On Tue, 14 Jun 2005 00:35:50 -0700, sergej.vasiljev wrote:
Hello,

while doing strings pattern matching we use '/377' character.
But this char is illegal for some Asian locales on Solaris.
For example, strcoll returns error because this character is outside
the domain of the collating sequence.

Which other character can be used instead?


The C language itself doesn't define specific character sets. If \377 is
not a valid character in a particular locale the question arises as to why
it is appearing in data for that locale. You'll need to decide how you
want to interpret such values.

It may be that \377 is being used as an escape character for multibyte
character encoding and as such it would not by itself be considered a
valid character.

Ultimately these issues are platform-specific so to resolve this for
Solaris or at least get a Solaris-aware solution you might try asking in
comp.unix.solaris.

Lawrence
Nov 14 '05 #5
Michael Tosch wrote:
strcmp() is locale-independent.


Though whether strcmp("A","B") is positive or negative
is implementation defined.

--
pete
Nov 14 '05 #6

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

Similar topics

14
42339
by: deko | last post by:
Is there a way to check user input for illegal characters? For example, a user enters something into a text box and clicks OK. At that point I'd like to run code such as this: illegal =...
5
3801
by: Dave | last post by:
I need to cut out illegal characters in a string submitted from a mobile phone to a web form. I need a way to check for the illegal characters in a textbox. I intend to loop through the text and...
3
15758
by: Eckhard Schwabe | last post by:
I only found one post on Google where someone mentions the same problem with a DataSet: XmlDataReader in .Net 1.1 can not read XML files from a path which contains "%10" or "%3f". code to...
0
1721
by: Mike McGranahan | last post by:
Hello, My wsdl.exe-generated, ASP.NET 1.1 web service pulls data from the local Exchange 2003 store using CDO 2000 and returns it to consumers. CDO occasionally returns (char)1, (char)5, and...
3
3026
by: =?Utf-8?B?SG9seXNtb2tl?= | last post by:
Hi there, I am having a problem im my webservices method when trying to save a file with latin characters to disk passed through WSE. I have noticed that when trying to read the file name from...
2
6210
by: Andy Fish | last post by:
Hi, I have an XML file that was created as a DOM tree in .Net 1.1 and serialized to disk. If I try to put character code 1 inside one of the attributes (don't ask why), it seems to serialize...
3
3517
by: Tarik Monem | last post by:
Hi Everyone, Still a newbie with FLEX, and I've passed arrays using AJAX to FLEX before, but I've never passed links to FLEX. Basically, this is the OUTPUT, which I wanted, but I'm given an...
2
17796
by: Kamaria | last post by:
I wrote this program to calculate the income tax of a user depending on whether or not they were married: import javax.swing.JOptionPane; public class Income_Tax { public static void main...
1
3361
by: aflow | last post by:
Hello! I downloaded java now twice, tested fine, enabled it & javascript in Firefox options, & from that time, whenever I visit Twitter & click on ANYTHING in Twitter, a small window that says...
0
6967
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...
1
6846
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...
0
7341
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4870
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
4564
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3076
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
3071
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1381
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
600
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.