如何将unicode转换为像“Ӓ”这样的html实体?

时间:2016-04-05 12:19:55

标签: php utf8-decode

我有mysql数据库unicode字符,我想将其转换为html实体?我的网站是latin2,无法转换为UTF。我试图使用iconv或htmlentities但它无法正常工作。请给我一些建议如何做到这一点。

在php中转换后,此字符串“♛学生夜♛IMPREZA STUDENCKA♛STUDENCIWSTĘP”必须为“library(lattice) productcountry <- rep(c("United Kingdom","USA"),each=20) productname <- rep(rep(c("Tea","Cornflakes"),each=10),times=2) productprice <- c(c(10,12,18,26,35,45,50,58,59,60),c(20,25,40,45,46,49,53,55,61,61),c(10,12,16,25,33,41,48,52,56,61),c(25,27,34,40,43,47,50,52,54,55)) productqty <- c(c(33,29,30,35,37,21,25,30,28,34),c(40,34,29,28,25,20,17,14,10,4),c(41,39,32,30,26,23,20,16,15,12),c(22,26,23,19,28,25,26,20,24,22)) elasticitydata <- data.frame(productcountry,productname,productqty,productprice) colnames(elasticitydata) <- c("Country","Product","Quantity","Price") elasticityplot <- xyplot(Quantity ~ Price | Country + Product, data = elasticitydata, type = c("g","p","smooth")) ”。

0 个答案:

没有答案