Home » SQL & PL/SQL » SQL & PL/SQL » How to update character set of a excel sheet through pl/sql (PL/SQL Release 11.2)
How to update character set of a excel sheet through pl/sql [message #599314] Wed, 23 October 2013 10:38 Go to next message
Chinmay91
Messages: 15
Registered: July 2013
Location: Mumbai
Junior Member
Hi All,

I am extracting Russian characters from db through a procedure and generating one excel sheet. But unfortunately in extracted excel sheet, I have to change the character set manually to "UNICODE(UTF-8)" , otherwise I can't able to see Russian character. Please find the attached screenshot for the same. Is anybody aware how to update this character set through pl/sql ? Let me know if anything needs to be provided from my end.

Thanks in advance.
Re: How to update character set of a excel sheet through pl/sql [message #599317 is a reply to message #599314] Wed, 23 October 2013 11:00 Go to previous messageGo to next message
Michel Cadot
Messages: 68641
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator

Using CONVERT function?

Re: How to update character set of a excel sheet through pl/sql [message #599319 is a reply to message #599314] Wed, 23 October 2013 11:30 Go to previous messageGo to next message
Lalit Kumar B
Messages: 3174
Registered: May 2013
Location: World Wide on the Web
Senior Member
Chinmay91 wrote on Wed, 23 October 2013 21:08
Is anybody aware how to update this character set through pl/sql ?


Not necessarily PL/SQL. You can do it with plain SQL. Michel already provided the solution. Here is some reading from docs, CONVERT
Re: How to update character set of a excel sheet through pl/sql [message #599320 is a reply to message #599317] Wed, 23 October 2013 11:36 Go to previous messageGo to next message
Chinmay91
Messages: 15
Registered: July 2013
Location: Mumbai
Junior Member
Michel Russian characters are exists in our db and it's getting extracted successfully. Actually I don't want to convert the character, I just want the excel that getting extracted have to automatically change its character set to "UNICODE(UTF-8)" as I marked red in screenshot(in op).
Re: How to update character set of a excel sheet through pl/sql [message #599322 is a reply to message #599320] Wed, 23 October 2013 11:45 Go to previous messageGo to next message
Lalit Kumar B
Messages: 3174
Registered: May 2013
Location: World Wide on the Web
Senior Member
That it a tool. How could SQL or PL/SQL alter settings of an external tool?
Re: How to update character set of a excel sheet through pl/sql [message #599324 is a reply to message #599320] Wed, 23 October 2013 11:51 Go to previous messageGo to next message
Solomon Yakobson
Messages: 3273
Registered: January 2010
Location: Connecticut, USA
Senior Member
And what this has to do with Oracle? Anyway, are you creating CSV in Oracle and then opening it in Excel? If so, CSV is just a text file. It has no notion of character set. What you could do is open excel, go to Data tab, click From Text (in Get External Data section) and select your file. Then Text Import Wizard page will let you choose "file origin".

SY.
Re: How to update character set of a excel sheet through pl/sql [message #599325 is a reply to message #599324] Wed, 23 October 2013 12:00 Go to previous messageGo to next message
Chinmay91
Messages: 15
Registered: July 2013
Location: Mumbai
Junior Member
No SY, I am creating xls file..

Yes Lalit I was thinking to change alter setting for the extracted excel sheet automatically.
Re: How to update character set of a excel sheet through pl/sql [message #599326 is a reply to message #599325] Wed, 23 October 2013 12:03 Go to previous messageGo to next message
Lalit Kumar B
Messages: 3174
Registered: May 2013
Location: World Wide on the Web
Senior Member
Chinmay91 wrote on Wed, 23 October 2013 22:30

Yes Lalit I was thinking to change alter setting for the extracted excel sheet automatically.


Chinmay, it's impossible.
Re: How to update character set of a excel sheet through pl/sql [message #599327 is a reply to message #599325] Wed, 23 October 2013 12:12 Go to previous messageGo to next message
cookiemonster
Messages: 13920
Registered: September 2008
Location: Rainy Manchester
Senior Member
Chinmay91 wrote on Wed, 23 October 2013 18:00
No SY, I am creating xls file..

How exactly are you creating an xls file?
You can't make a real xls with pl/sql.
Re: How to update character set of a excel sheet through pl/sql [message #599328 is a reply to message #599325] Wed, 23 October 2013 12:27 Go to previous messageGo to next message
Solomon Yakobson
Messages: 3273
Registered: January 2010
Location: Connecticut, USA
Senior Member
Chinmay91 wrote on Wed, 23 October 2013 13:00
I am creating xls file..


Using what tool?

SY.
Re: How to update character set of a excel sheet through pl/sql [message #599329 is a reply to message #599327] Wed, 23 October 2013 12:37 Go to previous messageGo to next message
Solomon Yakobson
Messages: 3273
Registered: January 2010
Location: Connecticut, USA
Senior Member
cookiemonster wrote on Wed, 23 October 2013 13:12
You can't make a real xls with pl/sql.


You can. There are several tools for this. For example, google Anton Scheffer's package.

SY.
Re: How to update character set of a excel sheet through pl/sql [message #599332 is a reply to message #599320] Wed, 23 October 2013 13:09 Go to previous messageGo to next message
Michel Cadot
Messages: 68641
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
Chinmay91 wrote on Wed, 23 October 2013 18:36
Michel Russian characters are exists in our db and it's getting extracted successfully. Actually I don't want to convert the character, I just want the excel that getting extracted have to automatically change its character set to "UNICODE(UTF-8)" as I marked red in screenshot(in op).


If this is not a SQL or PL/SQL issue why do you post it in a SQL forum?
As this has already been asked, how is this an Oracle issue? As far as I can see, you didn't answer to this question.


Re: How to update character set of a excel sheet through pl/sql [message #599386 is a reply to message #599329] Thu, 24 October 2013 01:47 Go to previous messageGo to next message
Chinmay91
Messages: 15
Registered: July 2013
Location: Mumbai
Junior Member
Actually we extracting CSV file with .xls extension.
Re: How to update character set of a excel sheet through pl/sql [message #599387 is a reply to message #599386] Thu, 24 October 2013 02:05 Go to previous message
Michel Cadot
Messages: 68641
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator

OK, you have your file, it is correct, here ends the Oracle part, the rest is out of the scope of this site.

Previous Topic: type and rowtype
Next Topic: date format problem
Goto Forum:
  


Current Time: Fri Apr 19 17:41:12 CDT 2024