Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

String filtern (Umlaute und ß)

Empfohlene Antworten

Veröffentlicht

also,

ich habe da eine Textarea in HTML eingefügt,

dieses Text werte ich dan in einen Skript aus.

nun meine Frage:

wie werte ich "ß ä ö ü Ä Ö Ü" aus?

also so in etwa (was aber nicht klappt)

$string =~ s/ß/ß/g;

hat jemand die entsprechenden Codes für die oben genannten Zeichen ???

mit \n filtere ich eine Leerzeile

habs schon versucht mit \ß, \ä usw... - geht aber alles nicht.

danke für die Hilfe

paul

OK buddy - - for a long time I haven't said anything in this community - - but your question is interesting enough to answer:

Try the following:

each character has it's own hexadecimal representation:

ß -> 0xDF

ä -> 0xE4

Ä -> 0xC4

ö -> 0xF6

Ö -> 0xD6

ü -> 0xFC

Ü -> 0xDC

knowing this and knowing how to use hex-values in PL try the following:

$STRING =~ s/\xDF/ß/g;

and so on, and you'll just be fine!!

Hope I was helpful - - check out http://h4kk3_007.bei.t-online.de/perlref.pdf - - a very good help indeed - - perl reference that doesn't answer all the detailled questions but is very interesting nonetheless - - - don't bother that I'm writing english - - I just was in the mood ;)

thanks a lot

that was it what i was searching for

thx paul

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.