在网页上显示度数符号 [英] Displaying degree symbol on webpage

查看:35
本文介绍了在网页上显示度数符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个程序可以从元数据中提取 GPS 坐标并将结果导入到数据库中.然后我在网页上使用 PHP 显示数据.

I have a program which extracts GPS coordinates from metadata and imports the results onto a database. I then display the data using PHP on a webpage.

我的问题 - 我最近创建了一个新模板,但无论出于何种原因,它不再显示度数符号°"而是"".

My problem - I've recently created a new template but for whatever reason, it is no longer showing the degrees symbol '°' but a '�'.

我只是觉得奇怪,它适用于一个模板,而不适用于另一个?

I just find it strange that it works with one template, but not the other?

我尝试过更改字体,但没有成功

I've tried changing fonts, but had no luck

推荐答案

参见 学位特征.

具体来说,HTML 实体:°.

Specifically, HTML Entity: °.

检查两个模板中的文档字符串和字符编码是否正确,以确保它们是正确的.

Check that you have the proper docstring and character encoding in both templates to make sure they are correct.

这篇关于在网页上显示度数符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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