Skip to main content
Known Participant
September 21, 2022
Question

How to code an o with an umlaut

  • September 21, 2022
  • 2 replies
  • 1352 views

Hello.

Im adding a mailto command to a button and want to add some subject text as such:

mailto:name@emailaddress.com?subject=A%20subject%20line

All works fine changing spaces to %20 where spaces should be.

The problem im having is that my subject line has a small letter o with an umlaut, like this ö.

I can't find the hex code (or whatever it is) that i need in order to get the subject line to read properly.

Can anyone help?

This topic has been closed for replies.

2 replies

Nesa Nurani
Community Expert
September 21, 2022

Try this:

\u00f6 for ö

\u00d6 for Ö

wobblewooAuthor
Known Participant
September 21, 2022

That just comes out as it was typed

Instead of the German word 'möchte' i get 'm\u00f6chte'

Thankyou though. Teh solution above worked. UTF-8 coding.

 

Brainiac
September 21, 2022

This is called "URL escaped" - the %20 means a space. Unfortunately, it doesn't tell us what encoding to use for o umlaut. You can try UTF-8, which is %C3%B6. Or you can try ISO-8859-1, which is %F6. One of these may work, but it may vary according to the mail app and PDF app used. 

wobblewooAuthor
Known Participant
September 21, 2022

UTF-8 works, thankyou.

The German word 'möchte' when coded as 'm%C3%B6chte' comes out correct in Acrobat Pro DC and Outlook 16.65 on a Mac.

 

Thankyou