简体   繁体   English

将货币符号从php发送到flash

[英]Sending currency symbol from php to flash

I am having many websites . 我有很多网站。 In that I have to send some parameters from php to flash. 在那里我必须从php发送一些参数到flash。 All the parameters are getting correctly displayed in flash except the currency symbol. 除货币符号外,所有参数都在闪存中正确显示。 These currency symbols are extracted from db to php in form of html entities like(& pound;). 这些货币符号以像(£)这样的html实体的形式从db提取到php。 I can't change the db as it will require many changes in all websites of mine. 我无法更改数据库,因为它需要在我的所有网站中进行许多更改。 I have used rawurlencode in php before sending to flash but in flash it gets displayed as & pound; 我在发送到闪存之前在php中使用了rawurlencode,但是在flash中它显示为£ in flash. 在闪光。 I have given space between "&" and "pound;" 我在“&”和“pound”之间留出了空间。 so it is not converted to symbol in the post . 所以它不会在帖子中转换为符号。 In db it is correctly entered with no space. 在db中,它正确输入,没有空格。 Previously , I was sending directly by writing the object tag in php file and and writing the parameters in params tag withing object tag. 以前,我直接通过在php文件中编写object标签并在params标签中写入带有object标签的参数来发送。 It was working perfectly fine . 它工作得非常好。 Now I have start using swfobject.js javascript library of hosted by google for embedding the flash content. 现在我开始使用google托管的swfobject.js javascript库来嵌入flash内容。 Now its not working ( currency symbol is not getting displayed instead it html entity unicode shown above is getting displayed.) . 现在它不工作(货币符号没有显示,而是显示上面显示的html实体unicode)。 I can't change the flash files also. 我也无法更改flash文件。 I have to handle it from php or javascript code only. 我只能从php或javascript代码处理它。

如果它是使用htmlentities()编码的,则只需使用html_entity_decode()对其进行解码,然后再发送到Flash(当然还要在使用rawurlencode重新编码之前

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

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