Phpexcel Export Chinese name picture, this time really is to seek master, generosity to points

Source: Internet
Author: User
Phpexcel Export Chinese name picture, this time really is to seek master, generosity to points
The English can be exported, but the Chinese name cannot be exported. At first, it was done by processing the encoding to convert UTF to GBK thought Phpexcel found the picture file can be exported, but not. Ask master to help export pictures of Chinese names, because of special needs, Therefore, the name of the English language cannot be named. master Ah Ah ah, very urgent
------Optimal Solution--------------------
Tested, not found Phpexcel does not support Chinese image names
------Other Solutions--------------------
is the name of your program echo out in Chinese?
------Other Solutions--------------------
No way??? My project unified use is Utf-8, but phpexcel export picture of file_exists () can't find my path picture, helpless I had to turn into GBK path, can find, but import not go in, error. Excuse me, 2 floor, can you post your export code to see it?
------Other Solutions--------------------
Citation: no???
My project unified use is Utf-8, but phpexcel export picture of file_exists () can't find my path picture, helpless I had to turn into GBK path, can find, but import not go in, error. Excuse me, 2 floor, can you post your export code to see it?
Didn't I give you the test code last time? You can change the name of the picture into Chinese.
------Other Solutions--------------------
Well? My code is such a path is like this but it is error code: $objDrawing = new phpexcel_worksheet_drawing ();
$objDrawing->setname (' Photo ');
$objDrawing->setdescription (' Image inserted by PYXJM ');
$imgpath = $arrpath [0]. ' \ \ '. $arrpath [1]. ' \ \ '. $arrpath [2]. ' \ \ '. $arrpath [3]. ' \public\projects\mj\images\logo\\ '. $value;
$objDrawing->setpath (iconv (' utf-8 ', ' GBK ', $imgpath));
$objDrawing->setwidth (' 25pt ');
$objDrawing->setheight (' 20pt ');
$objDrawing->setoffsetx (2);
$objDrawing->getshadow ()->setvisible (true);
$objDrawing->setcoordinates ($array [$k]. $d);
$objDrawing->setmimetype (Phpexcel_worksheet_memorydrawing::mimetype_default);
$objDrawing->setworksheet ($objExcel->getactivesheet ());
Picture path: D:\wamp\www\jusaas\Public\projects\mj\images\logo\ China education news. jpg

Hard God help to see, work needs, be forced helpless, can not solve it's okay, I'll find a way
------Other Solutions--------------------
Where did your $arrpath come from? Did you send the correct content?

------Other Solutions--------------------
$arrpath is the path to $imgpath=d:\wamp\www\jusaas\public\projects\mj\images\logo\ China Education News. jpg content Correct This code as long as the Chinese name is replaced by English name can be exported pictures
------Other Solutions--------------------
Know $arrpath is the path, the key is where did he come from?
Did you enter it in the program?

You
Echo Base64_encode (Print_r ($arrpath, 1));
Post the results and see
------Other Solutions--------------------
[2012-11-19t17:21:31+08:00] err:qxjyyxkkkaogicagwzbdid0+ieq6ciagicbbmv0gpt4gd2ftcaogicagwzjdid0+ihd3dwogicagwzndid0+igp1c2fhcwopcg==
[2012-11-19t17:21:31+08:00] err:qxjyyxkkkaogicagwzbdid0+ieq6ciagicbbmv0gpt4gd2ftcaogicagwzjdid0+ihd3dwogicagwzndid0+igp1c2fhcwopcg==
[2012-11-19t17:21:31+08:00] err:qxjyyxkkkaogicagwzbdid0+ieq6ciagicbbmv0gpt4gd2ftcaogicagwzjdid0+ihd3dwogicagwzndid0+igp1c2fhcwopcg==
[2012-11-19t17:21:31+08:00] err:qxjyyxkkkaogicagwzbdid0+ieq6ciagicbbmv0gpt4gd2ftcaogicagwzjdid0+ihd3dwogicagwzndid0+igp1c2fhcwopcg==
[2012-11-19t17:21:31+08:00] err:qxjyyxkkkaogicagwzbdid0+ieq6ciagicbbmv0gpt4gd2ftcaogicagwzjdid0+ihd3dwogicagwzndid0+igp1c2fhcwopcg==
[2012-11-19t17:21:31+08:00] err:qxjyyxkkkaogicagwzbdid0+ieq6ciagicbbmv0gpt4gd2ftcaogicagwzjdid0+ihd3dwogicagwzndid0+igp1c2fhcwopcg==
[2012-11-19t17:21:31+08:00] err:qxjyyxkkkaogicagwzbdid0+ieq6ciagicbbmv0gpt4gd2ftcaogicagwzjdid0+ihd3dwogicagwzndid0+igp1c2fhcwopcg==
[2012-11-19t17:21:31+08:00] err:qxjyyxkkkaogicagwzbdid0+ieq6ciagicbbmv0gpt4gd2ftcaogicagwzjdid0+ihd3dwogicagwzndid0+igp1c2fhcwopcg==
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.