简体   繁体   English

如何在数据表服务器端处理中解码 html 格式的数据

[英]How to decode html formatted data in Datatables Server-Side Processing

I have a question table, which has HTML encoded records by the TinyMCE editor.我有一个问题表,其中包含 TinyMCE 编辑器的 HTML 编码记录。 The table has almost 5 thousand records.该表有近 5000 条记录。 I am trying to list all records in DataTables using server-side functionality.我正在尝试使用服务器端功能列出 DataTables 中的所有记录。 While fetching HTML encoded data it outputs only??????在获取 HTML 编码数据时,它只输出?????? (encoded data is multilingual). (编码数据是多语言的)。 charset=utf-8' is defined. charset=utf-8' 已定义。

在此处输入图像描述

在此处输入图像描述

在此处输入图像描述

https://www.php.net/manual/en/function.iconv.php https://www.php.net/manual/en/function.iconv.php

Check out iconv.查看 iconv。 You can convert between character encodings.您可以在字符编码之间进行转换。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM