| |

VerySource

 Forgot password?
 Register
Search
View: 609|Reply: 2

C program under linux, how to express Chinese expressions

[Copy link]

1

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-3-5 14:00:01
| Show all posts |Read mode
regex_t pattern;
regmatch_t subs [MAX_MATCH_SUBS];
char pattern_string [] = "<title> ([\u01-\uFF] +) </ title>";
char test_string [] = "<title> hello </ title>";

This seems impossible. . .
Reply

Use magic Report

1

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

 Author| Post time: 2020-5-20 10:30:02
| Show all posts
char pattern_string [] = "<title> ([\x01-\xFF] +) </ title>";
char test_string [] = "<title> hello me </ title>";


That's it, alas. .
Reply

Use magic Report

0

Threads

78

Posts

29.00

Credits

Newbie

Rank: 1

Credits
29.00

 China

Post time: 2020-5-20 16:00:01
| Show all posts
Chinese character encoding prefix of the character set you are using ...
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list