Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 -
- - - - - - -

Supporter timezone: Asia/Karachi (GMT+05:00)

Tagged: 

This topic contains 5 replies, has 1 voice.

Last updated by Waqas Bin Hasan 3 weeks ago.

Assisted by: Waqas Bin Hasan.

Author Posts
March 12, 2025 at 12:58 pm #16807107

kevinB-5

Background of the issue:
I am trying to translate some texts to Hungarian on my site hidden link using WPML.

Symptoms:
Special HTML characters in translations are showing as code.

Questions:
How can I prevent/fix this?

March 14, 2025 at 9:42 am #16815553

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

Thanks for contacting us.

While you wait for my colleague to take over the ticket, let me try to help you with the issue quickly.

It looks like a known issue. Can you please try the next workaround fix and see if that helps?

- https://wpml.org/forums/topic/special-characters-encoding/#post-14512613

Let us know how it goes.

Regards,
Drazen

March 17, 2025 at 10:21 am #16823832

kevinB-5

I think it is the same problem, indeed. But I'm not really happy with the solution. I don't want to edit your plugin's core files.

Is there another way of fixing this, maybe via a filter/hook?

March 17, 2025 at 1:05 pm #16824830

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting the support.

Unfortunately there's no other way at the moment. I'll recommend trying the fix as mentioned by my colleague.

Additionally, you may also check by updating WPML plugins to the latest versions first. And if this doesn't help, then please try the fix mentioned earlier.

IMPORTANT: Please take full backup of your website and database beforehand. 

It is highly advised to try this on a staging/dev site first, so your live website isn't compromised.

Regards.

March 17, 2025 at 1:23 pm #16825210

kevinB-5

I have updated all the WPML plugins, that did not help.

It's not really a best practice to change the source code of your plugin. And every time there is an update, we will have to add the fix again. That's not a sustainable solution.

I would like a permanent fix that doesn't require me to add the fix every update.

March 18, 2025 at 6:04 am #16827838

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for the updates.

Please note that until a new release includes a permanent fix for an issue, this is the only viable way of doing it. So either this fix or if we provide another (since this one didn't work) 'll have the same process.

Anyways, I need to take a closer look at your site. So I request temporary access (WP-Admin and FTP), preferably to a test site where the problem has been replicated.

Your next answer will be private, to share this information safely.

Also provide detailed steps to reproduce the issue and links to pages in the admin and on the frontend.

IMPORTANT: Please take a complete backup of the site to avoid data loss. I may need to activate/deactivate plugins also.

See https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/ for details on privacy and security.

P.S.: If you don't see the section for providing access information, do not write in the message box or the information may appear as public.

The topic ‘[Closed] Special HTML characters in translations are shown as code’ is closed to new replies.