views:

207

answers:

1

Im trying to compare these two chars but on win 32 Visual Studio 2008:

if(mychar1 ==  'ä'  || mychar2 == 'Ä')

Erromess:

Debug Assertion Failed!

File:f\dd\vctools\crt_bld\self_x86\crt\src\xstring Line 1575

Expression: string subscript out of range

+6  A: 
sbi
Make sure that your file (.cpp) is saved as ASCII or iso-8859-15 / iso-latin9, not UTF-8 or somesuch.
Pasi Savolainen