如何修复显示Word简历的PHP / HTML网页与时髦的字符 [英] How to fix PHP/HTML webpages that display Word resumes with funky characters

查看:51
本文介绍了如何修复显示Word简历的PHP / HTML网页与时髦的字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个文字区域,人们可以切割&粘贴他们的简历。

不幸的是他们经常剪掉&将他们的Word简历粘贴到

textarea,时髦的角色等等。


这会导致人们在HTML结尾时显示错误。

查看将这些简历存储为MySQL文本字段条目的页面。


如何解决此问题,以及如何修复已经显示的那些

以这种方式进入?


Thanx

Phil

I have a textarea where people can cut & paste their resume.
Unfortunately they often cut & paste their Word resume into the
textarea, funky characters and all.

This causes the display to be mangled from the HTML end when people
view pages with these resumes stored as a MySQL text field entry.

How do I fix this, also, how do I fix the displays of those already
entered this way?

Thanx
Phil

推荐答案

由时髦字符组成我假设你的意思是字母e,上面有可爱的

小法国装饰。试试这个:

By "funky characters" I assume you mean the letter ''e'' with the cute
little French decoration on top. Try this:


new_string = str_replace(''''','''',
new_string=str_replace(''é'',''e'',


old_string );


用普通香草e'替换装饰的e'。


(第一个e是装饰的,如果它没有出现在你的

新闻阅读器中。对于Windows用户来说,通过按住alt

ket并在数字上键入0233来输入垫。)


您可能还需要为大写字母E做这件事,包括人们

写RESUMé大写。


--gary

old_string);

To replace the decorated e''s with plain vanilla e''s.

(The first e is the decorated on, in case it doesn''t show up in your
newsreader. For windows users that''s entered by holding down the alt
ket and typing 0233 on the num pad.)

You might also need to do it for the upper case ''E'' inc ase people
write "RESUMé" in caps.

--gary


这篇关于如何修复显示Word简历的PHP / HTML网页与时髦的字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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