Sitemap

Amicuk Programming Answers

Convert from ISO 8859-1 encoding to UTF-8

2015-10-11   Views:6

Advertisement

Hi My Os name is 'SunOS ut51109 5.10 Generic_144500-19 sun4v sparc SUNW,T5440'. I want to change the encoding of the existing .bcp file from ISO 8859-1 to UTF-8 with out using any temp files as these .bcp file will be pointed by an external table. he

Hi
My Os name is 'SunOS ut51109 5.10 Generic_144500-19 sun4v sparc SUNW,T5440'.
I want to change the encoding of the existing .bcp file from ISO 8859-1 to UTF-8 with out using any temp files as these .bcp file will be pointed by an external table.
here is the command I issued in the script(ksh file)
iconv -f ISO8859-1 -t UTF-8 file1.bcp > file1.bcp
After the script got executed file1 is empty(showing 0 bytes).
Please correct me or let me know the syntax to be followed to write the data into the same file in UTF-8 format.
Thanks
kartheek

The replay answer
Advertisement
You cannot do conversion from ISO 8859-1 to UTF-8 in-place because the UTF-8 version will generally be longer (unless you convert a pure ASCII file, which does not need conversion in the first place). Therefore, you would have to overwrite what you have not read yet. Instead, convert to a new file with a temporary name, drop the original and rename the temporary back to original. This is not that complicated.
If the problem is that you want to overwrite a file already open by the database, then rename the incoming file first and then convert copying to the target.
-- Sergiusz

Go to See the other 3 answers

Convert from ISO 8859-1 encoding to UTF-8

Category:DefaultRelease time:2015-10-11Views:130

Hi My Os name is 'SunOS ut51109 5.10 Generic_144500-19 sun4v sparc SUNW,T5440'. I want to change the encoding of the existing .bcp file from ISO 8859-1 to UTF-8 with out using any temp files as these .bcp file will be pointed by an external table. he[More]

[svn:fx-trunk] 7661: Change from charset=iso-8859-1" to charset=utf-8" and save file with utf-8 encoding.

Category:DefaultRelease time:2015-10-11Views:130

Revision: 7661 Author:   [email protected] Date:     2009-06-08 17:50:12 -0700 (Mon, 08 Jun 2009) Log Message: Change from charset=iso-8859-1" to charset=utf-8" and save file with utf-8 encoding. QA Notes: Doc Notes: Bugs: SDK-21636 Reviewers: C[More]

WSDL Generating in ISO-8859-1 encoding want in UTF - 8

Category:DefaultRelease time:-0001-11-30Views:130

Hi XI Geeks,        When I am using "Define Web Service" tool in Integration Directory, the WSDL file is being created with encoding <b>ISO-8859-1</b>, <i><b>but we want in "UTF-8"</b></i>.         I[More]

How to store UTF-8 characters in an iso-8859-1 encoded oracle database?

Category:DefaultRelease time:-0001-11-30Views:130

How can we store UTF-8 characters in an iso-8859-1 encoded oracle database? We can NOT change the database encoding but need to store e.g. Polish or Russian characters besides other European languages. Is there any stable sollution with good performa[More]

File adapter ISO-8859-1 encoding problems in XI 3.0

Category:DefaultRelease time:2015-10-11Views:130

We are using the XI 3.0 file adapter and are experiencing some XML encoding troubles. A SAP R/3 system is delivering an IDoc outbound. XI picks up the IDoc and converts it to an external defined .xml file. The .xml file is send to a connected ftp-ser[More]

Java App on Linux : Unable to read iso-8859-1 encoded file correctly.

Category:DefaultRelease time:-0001-11-30Views:130

I have a file which is encoded as iso-8859-1, and contains characters such as ô . I am reading this file with java code, something like: File in = new File("myfile.csv"); InputStream fr = new FileInputStream(in); byte[] buffer = new byte[4096];[More]

Setting ISO-8859-1 Encoding in AXIS RPC call

Category:DefaultRelease time:-0001-11-30Views:130

As per my understanding UTF-8 is default for webservice call in AXIS implementation I may be wrong. Is there any way to set ISO-8859-1 encoding in AXIS RPC call? Below is the WSDL file details. Thanks for you help. Regards, Hemen <Code> <?xml ver[More]

UTF-8 encoding vs ISO 8859-1 encoding

Category:DefaultRelease time:2015-10-11Views:130

The iTunes tech specs call for UTF-8 encoding of the XML feed file; a friend of mine uses feed generator software through his blog that uses ISO 8859 encoding. Is there a way to convert the latter to UTF-8 so that iTunes tags may be successfully adde[More]

XML data encoding iso-8859-1 . Currently utf-16 is default encoding

Category:DefaultRelease time:2015-10-11Views:130

Hello ABAP Gurus , Need a help from you . Scenario : We have SAP4.7 enterprise version which we have now converted to Unicode system . There is a BSP application which talks to an external web application (Non Unicode) thru HTTP protocol and sends da[More]

How to convert back from UTF8 to ISO-8859-1 encoding?

Category:DefaultRelease time:2015-10-11Views:130

hi, I have a bunch of XML files which were wrongly encoded, and we lost all our accent characters. ie: é become é so how can I recover my XML files using powershell? so I want to change all the UTF8 ecoded characters back to the original ISO accent[More]

Encoding autodetection chooses ISO-8859-5 instead of UTF-8

Category:DefaultRelease time:-0001-11-30Views:130

A certain site producing HTML in UTF-8 without meta tags. The Firefox detects the encoding as ISO-8859-5, an absolutely dead and useless 'standard'. How to exclude it from the autodetection and maki it proper unicode?It's a strange guess, if it's a g[More]

Hot
Or are there downsides at all, assuming latest generation Airports? I think it happens more often than not that the position of the modem from your ISP in the dwelling is not the ideal location for a router, and it is sometimes inconvenient/impossibl [More]
Every thing works well on windows 8 install using boot camp. Even all drivers available for windows 7 work and let windows 8 function all the way. I only got struck on track pad as this is only important thing which gave away and never worked. On usi [More]
Hi Experts, Can anyone suggest me ,how to upload images into customised table and display thoes images in normal abap report. Thanks in Advance, Rgds, AnushaHi Experts, Can anyone suggest me ,how to upload images into customised table and display tho [More]
Trying to add a Word Press blog to my Dreamweaver site through a linked tab... is it possible?  My client wants a blog on his website that I am curently creating in Dreamweaver and I am clueless on how to manually create one using a DB... so is it po [More]
Is there a way to populate a datatable so that the data displays in a column only when it is different than the previous rows. For example if I have a List of InventoryItems that have properties State, WHouse, Widget, Count. And I want to display the [More]
Hi Experts, Using xml form builder I have created a project.In the show form I have added the "Reset" button. This reset functionality is working fine during creation of new xml file item. But when I am editing the existing xml file ,  onclick o [More]
Hi, I'm trying to upgrade from BlazeDS 3.2 to BlazeDS 4 with clustering jgroups configuration jgroups (2.4.1) Here's my jgroups-tcp.xml file : jgroups-tcp.xml <config> <TCP bind_addr="server1" start_port="8080" loopback=" [More]
Good day >>> I use Cisco WVC210 (Cisco Small Business Video Surveillance Camera ) in my project ( in my study in University ) and I have some problem and I need help me in it if possible  ... * I want API or  URl command to control in video resol [More]
Hello, have a problem with Safari. I can't remove saved passwords of websites. My steps: - Settings - Safari - Passwords & autofill - Saved passwords - I write 4-digit code - I click on "Edit", select all sites, then I click on Remove If I g [More]
Hello, I am feeling to speak of Mobile Application.... Someone, know something more detailed in case specific of: MOBILE SALES ONLINE for CRM. It works, minimal requisite, Thanks everybodyHi, are you talking about this one: http://www.sap.com/company [More]