473,770 Members | 6,105 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Writing French Accented Characters in Excel using Perl.

1 New Member
Hallo,

I am trying to write french accented characters é è ê in Excel worksheet using my perl script , But I am stuck here as I couldnt find a way of writing it !:

My code:

Expand|Select|Wrap|Line Numbers
  1. use strict;
  2. use warnings;
  3.  
  4. use Win32::OLE qw(in with);
  5. use Win32::OLE::Const 'Microsoft Excel';
  6.  
  7. my $Excel = Win32::OLE->GetActiveObject('Excel.Application')
  8.     or Win32::OLE->new('Excel.Application', 'Quit');
  9. my $excel_file = 'd:/excelfile.xls';
  10.  
And it goes on, where I am reading the french text from an xml file and I am writing it into my Excel worksheet using this :

Expand|Select|Wrap|Line Numbers
  1. $sheet->Cells($i,8)->{'Value'}="$temp";
  2.  
Where $temp has the french text .. I see that It reads correctly from the xml file.

Expand|Select|Wrap|Line Numbers
  1. my $xmlsource3 = "LAX03fr.xml";
  2. open IN3, "<:utf8", $xmlsource3 or die "Can't Read Source file $xmlsource3: $!\n";
  3.  
There was a problem before with reading also but when I added this "<:utf8" tag in there the problem got solved and now it reads the characters correctly..

Also i printed the $temp in the output window and it shows the accented characters correctly , only when it writes to excel i cannot see the accented characters and instead I see ,something like this in my excel ! ---> Unité

How can I solve this problem ?

Please help me guys , any help would be greatly appreciated.

thanks a lot, in advance,
shintu
Sep 6 '07 #1
0 2302

Sign in to post your reply or Sign up for a free account.

Similar topics

1
3843
by: Bernhard Georg Enders | last post by:
I'm using the php 'file' command to read the contents of an ASCII text file to a variable. The original text file contains some accented and special characters. The problem arises when I echo this variable: the accented characters are messed up. And not only accented characters, for example, the special characters ª is printed as ª. What can I do to correct this issue? I have tried, without success, to use the 'setlocale' command. TIA,
2
4428
by: Si Pearson | last post by:
Hi, I've got an aspx page with a 'mailto' with accented characters in the subject field, when the mail is created the accented characters aren't displayed correctly. The mailto looks like this: href="mailto:simon@bob.com&subject=Suggestions for : ED13&body=Title%0d%0aLe jûge de l'impôt
2
12464
by: yearTiger2002 | last post by:
Our company's back end database server does not handle french accentuated characters well. We need to replace those characters with english letters when validating the form inputs. Any suggestions? I've never delt with foreign languages before...any help greatly apprieciated!
0
3248
by: Mark Drummond | last post by:
I don't do a lot of perl, but what I do usually always involves working with data in LDAP directories. I have a script now that I run every Monday to produce a CSV file containing a dump of some key user data from my directory. I pass that CSV on to some other people and they pull it in to Excel for viewing. We recently started allowing accented characters in the directory and I've noticed that the resulting CSV file ends up with some...
2
2934
by: ngrover | last post by:
When accessing strings from a french language utf-8 .txt file (that has been resgen'ed into a .resources file) via ResourceManager.GetString() method, I am encountering a problem. All the special characters are not coming through. The accented vowels etc. are being stripped out. Other non-latin languages are working just fine, the utf-8 encoding is not a problem for the ResourceManager. any ideas? utf example that i'm using: ...
1
1531
by: jgershonw1 | last post by:
I have a file that is UTF-8 encoded which contains french words. The french characters are represented as two characters. Take for example an accented e, which is A with a tilda ontop and the copyright symbol. How would I go about translating Téléjournal to Téléjournal?
1
1238
by: rvenable | last post by:
Hi everyone, I'm new to this forum and I hope I'm in the right one. I have a question regarding MS Index server to search for french accent characters. I have a search engine for our website that uses MS Index Server and it works great but it doesn't find any results for searches that contain french accented characters. If I'm searching for "élément"...it doesn't find anything because the page uses html codes for accents and this word...
4
2894
by: gsuns82 | last post by:
Hi all, I am facing a strange issue. i.e: I have a jsp page with an input text field where the user can enter searching value even along with Accented Characters.After that i am getting the input value at the controller inorder to compose a query,before that i am replacing Accented Characters with plain text values so that i can append the proper input value in the DBquery. I tried to replace the input string for ...
0
1160
by: jpero09 | last post by:
Having some trouble writing out accented characters to an ms-excel type output from my asp.net page (c#). I've tried a few different charsets but every time the è on my page is getting rendered as è Any ideas? ... Response.Clear(); Response.Buffer= true;
0
10231
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10059
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10005
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9871
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8887
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7416
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6679
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5452
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3576
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.