Home     |     .Net Programming    |     cSharp Home    |     Sql Server Home    |     Javascript / Client Side Development     |     Ajax Programming

Ruby on Rails Development     |     Perl Programming     |     C Programming Language     |     C++ Programming     |     IT Jobs

Python Programming Language     |     Laptop Suggestions?    |     TCL Scripting     |     Fortran Programming     |     Scheme Programming Language


 
 
Cervo Technologies
The Right Source to Outsource

MS Dynamics CRM 3.0

Perl Programming Language

Matching a french accent character


Hi,

I want to match this string

   # Societ Generale Long Dated

how can I match this whole string including the french accent
character?

Thanks,
Enda

On May 23, 12:36 pm, endaman <keepyourstupids@yahoo.co.uk> wrote:

> Hi,

> I want to match this string

>    # Societ Generale Long Dated

> how can I match this whole string including the french accent
> character?

Er, I assume from the fact that you ask that just doing it didn't
work.

Please post a _minimal_ but _complete_ script in which you've tried
and it's failed. Since this is character set related make sure you
tell us what character encoding you used to save the script (utf8,
Latin1, Windows-1250 etc...)

There's no reason why just doing it should not work (in a script saved
in Latin1 encoding or in utf8 with 'use utf8') .

    if (/# Societ Generale Long Dated/) { do_stuff() }

If you want to avoid having to think about the encoding of the script.

    if (/# Societ\x{e9} Generale Long Dated/) { do_stuff() }

On May 23, 12:36 pm, endaman <keepyourstupids@yahoo.co.uk> wrote:

> Hi,

> I want to match this string

>    # Societ Generale Long Dated

> how can I match this whole string including the french accent
> character?

Er, I assume from the fact that you ask that just doing it didn't
work.

Please post a _minimal_ but _complete_ script in which you've tried
and it's failed. Since this is character set related make sure you
tell us what character encoding you used to save the script (utf8,
Latin1, Windows-1250 etc...)

There's no reason why just doing it should not work (in a script saved
in Latin1 encoding or in utf8 with 'use utf8') .

    if (/# Societ Generale Long Dated/) { do_stuff() }

If you want to avoid having to think about the encoding of the script.

    if (/# Societ\x{e9} Generale Long Dated/) { do_stuff() }

On May 23, 12:36 pm, endaman <keepyourstupids@yahoo.co.uk> wrote:

> Hi,

> I want to match this string

>    # Societ Generale Long Dated

> how can I match this whole string including the french accent
> character?

Er, I assume from the fact that you ask that just doing it didn't
work.

Please post a _minimal_ but _complete_ script in which you've tried
and it's failed. Since this is character set related make sure you
tell us what character encoding you used to save the script (utf8,
Latin1, Windows-1250 etc...)

There's no reason why just doing it should not work (in a script saved
in Latin1 encoding or in utf8 with 'use utf8') .

    if (/# Societ Generale Long Dated/) { do_stuff() }

If you want to avoid having to think about the encoding of the script.

    if (/# Societ\x{e9} Generale Long Dated/) { do_stuff() }

Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc