LanaR
Member
- Local time
- Today, 13:22
- Joined
- May 20, 2021
- Messages
- 113
I'm working on a routine to strip out accented characters from a string and replace them with standard Latin characters.
The code does pretty much what I'm looking for, except that it doesn't seem to discriminate between upper and lower case characters. The code looks in part like;
For example, š with return S rather than s.
What do I need to change to get the code to make the distinction between Š and š (or any other upper/lower case characters)?
The code does pretty much what I'm looking for, except that it doesn't seem to discriminate between upper and lower case characters. The code looks in part like;
Code:
Select Case GrapeLetterCheck
Case "ƒ"
GrapeLetterCheck = "f"
Case "Š"
GrapeLetterCheck = "S"
Case "š"
GrapeLetterCheck = "s"
Case "ß"
GrapeLetterCheck = "ss"
Case "Ä"
GrapeLetterCheck = "Ae"
Case "ä"
GrapeLetterCheck = "ae"
....
End Select
For example, š with return S rather than s.
What do I need to change to get the code to make the distinction between Š and š (or any other upper/lower case characters)?