如何解码这些字符? √°√©√≠ [英] How to decode these characters? √° √© √≠

查看:115
本文介绍了如何解码这些字符? √°√©√≠的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在查询MediaWiki API,以将Wikipedia数据导入我的Filemaker数据库。当我将数据加载到浏览器中时,字符会正确显示,但在Filemaker中时,带有变音符的字符将转换为以下奇数字符:á转换为√°(平方根符号+度符号),é转换为√©(平方根符号+版权符号),í转换为√≠(平方根符号+不等于符号)及更多。那是什么字符编码?谢谢!!!!

I'm querying the MediaWiki API to get Wikipedia data into my Filemaker database. When I load the data into a browser, the characters show up properly but when it comes into Filemaker, characters with diacriticals get converted to these odd characters: á is converted to √° (square root symbol + degree symbol), é is converted to √© (square root symbol + copyright symbol), í is converted to √≠ (square root symbol + not equals symbol) and more. What character encoding is that? Thank you!!

推荐答案

对于误解的字符,我用来设置FMP的Troi URL FMP插件,您都非常正确。用户代理(按照MediaWiki API的要求)负责提取乱码。解决方法是绕过该插件:FMP脚本执行Applescript do shell script curl -A来设置用户代理和查询API,并将响应拉回FMP,所有字符都正确通过!

You're all correct about the misinterpreted characters, the Troi URL FMP plugin I was using to set FMP's user agent (as MediaWiki API requires) was responsible for pulling in the garbled characters. Solution was to bypass the plugin: FMP script performs Applescript "do shell script curl -A" to set user agent and query API and pull response back into FMP and all characters come through properly!

这篇关于如何解码这些字符? √°√©√≠的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆