Solution 1 :

I found “” and by entering the characters code, I was able to imply whichever character I was looking for. No need to import a specific lib or anything.

Example: Swedish ‘ä’ = ä . So ‘Stapelbäddsparken’ = Stapelbäddsparken in HTML.

I hope this will be helpful to others as well.

Problem :

Student programmer in Python. I need to include Swedish letters in my HTML-tag but the output shows non-readable characters. My goal is by using libs like folium and iPython.display , I can apply the Swedish name within the HTML tag. It’s hard to explain so I’ll just show you what I got so far:

import geopandas
import folium    
from IPython.core.display import HTML

    #top {
        text-align: center;
        vertical-align: middle;

    '<a href=",12.9816805,17z/data=!3m1!4b1!4m5!3m4!1s0x4653a5ed00b7ea67:0x53c9bf8f0eae32d8!8m2!3d55.6135451!4d12.9838693" target="_blank" content="text/html" > Stapelbäddsparken </a>'

So I need “Stapelbäddsparken” to be read but my output is “Stapelbäddsparken”. When I search for an answer I only find solutions that are 7 years old or older, I tried their soulutions but without results..

I am using jupyter notebook, but testing in google colab (if it matters). What I’m looking for is either a lib to import the usage for Swedish letters, a way to include python variables inside the a-tag or if you know any other way. Thanks for all the effort on before hand!


Comment posted by user28434’mstep

Are you using Python 2?

Comment posted by johnjohn

No Python 3, sorry for not writing that earlier