Convert file encoding from ASMO-708 to Unicode

Hi,
I have txt files from a dos application. the files in ASMO-708/ISO-8859-6 encoding
i did a test program to see if i will be able to see the characters in Unicod(eclips-debug)
i read the file using
Reader r = new BufferedReader(new InputStreamReader(txtfile ,"ISO-8859-6"));i did this on text file, what i found that i could read some characters and some not.
like character in asmo-708 is 0x99 should correspond to 0x0622(unicode)
but it respond to 0x3f which is undefined character.
my question is why some characters work and some not?
Thanks

Likewise Wikipedia, whose article about ISO-8859-6 says
"Code values 0x00�0x1F, 0x7F, 0x80�0x9F, 0xA1�0xA3, 0xA5�0xAB, 0xB0�0xBA, 0xBC�0xBE, 0xC0, 0xDC�0xDF, and 0xF3�0xFF are not assigned to characters by ISO/IEC 8859-6."

Similar Messages

  • Why can I not download a converted file (xl from pdf)?

    I have a converted file (XL from PDF) but I cannot download it. Never before had a problem. What am I doing wrong?

    Hi Peter,
    I'd like to assist!
    What is happening when you try to convert from PDF to Excel? Are you receiving a specific error message? Was the file an Excel doc prior to being converted to PDF?
    Looking forward to hearing back from you.
    Kind regards, Stacy

  • Converting file names from Mac to Windows.

    I am an Apple tech at a university that uses both PCs and Macs. We have found that we run into some problems when transferring a user's data from one platform to the other.
    When transferring lots of files, what do you experienced Mac techs use for safely converting file names from Mac to Windows?
    From Windows to Mac?
    We've tried NameCleaner and ended up with bad results.
    Please let me know if there is something good out there for these conversions.
    ---Timothy

    The problem looks like this:
    1. User wants to switch from Mac to Windows.
    2. We back up the data from his Mac to a server (an X-Serve RAID).
    3. We log into the server from Windows.
    4. We try to pull his data from the server.
    During this data transfer, it quits with an error stating that it can't finish copying the data. I wish I had the exact text, but I don't. It does this repeatedly, and stops on different files from different locations.
    In essence, without "cleaning" the Mac file names, data transfer to Windows cannot successfully complete. It quits on certain Mac file names. In the past, NameCleaner has worked sometimes, but now we have had some issues with NameCleaner (which don't matter in this discussion). The goal is to find a better solution than NameCleaner.

  • Can Adobe Acrobat 9.0 Pro Convert File Hyperlink From Word to PDF?

    Is there any method to convert file link (eg. C:\Documents and Settings\xxx\My Documents\xx.xls) from Word 2000? I have read many related issues, but seems cannot get the final answer. Many of them only mention about URL hyperlink (eg. www.yahoo.com). Can anyone help?

    Do you mean that  Office XP and later version can automatically convert the file link? No need to manually create the link in Acrobat using the link tool?
    I will work this out to see whether ok or not.
    By the way, thank you, Michael Kazlow.

  • Convert Text file encoding in perticular format(Unicode)

    Hi Expert,
    I have requirement of transfering text file (encoding) in perticular file format to Application server ,by default SAP system generates in ANSI ,is it possible to convert it to Unicode format like UTF-8.If possible then how to generate the text file in unicode.
    Thanks,
    Regards

    Check
    Note 752835 - Usage of the file interfaces in Unicode systems
    Markus

  • Transfer file from MDMP system to Unicode system

    Hi all,
    We are facing this problem for some weeks now and our basis team and myself are completely lost on this.
    Recently we have installed the Polish language (in fact codepage 8859-2) via so called 'MDMP' on our 4.6C HR-system.
    We did this because there is a need to enter special Polish characters in eg Employee names for Poland.
    So far so good, the Polish characters can be entered and look just fine when loggon on in Language 'PL'.
    But now, we need to send a file to our payroll partner (adp) and of course we need to keep the Polish characters along the way.
    Our payroll partner's system is unicode at ECC6.0.
    The first problem is, that the file (produced via abap program on sap server Unix HP) only looks good when you look at it via AL11 from within SAP, when logged on in Polish. I used the command   "set locale language 'L'" in the abap program to set the language settings to Polish.
    When I download the file to my PC or look at it from Unix, the Polish characters are rubbish.
    After transferring the file to the payroll partner(encrypted and with sftp), the Polish characters also look like rubbish(even when logged in in Polish and using AL11) , and they do not succeed in loading the file on their end.
    Does anyone have any experience or thought on this subject, I have spent days and days reading a lot of SAP Notes and other documents about this subject. I would appreciate any help, thanks !
    Patrick.
    Edited by: Patrick DHooge on Feb 8, 2010 11:23 AM

    What you see is expected behaviour.
    MDMP is a technology where the application server displaying characters "knows" that it's using a different locale than the default and hence displaying things correctly.
    The problem you have is that an ASCII code in polish locale is not necessarily identical to the ASCII code in a different locale (e. g. English). To display the characters correctly in e. g. notepad you would need to use a polish Windows system (or a MUI installation where you can switch the locales).
    You may be able to use sapiconv to convert the files to a Unicode format (see Note 752859 - sapiconv - a tool for converting the encoding of files) but basically the only clean way would be to upgrade your 4.6c system and migrate to Unicode.
    Markus

  • SQL bulk copy from csv file - Encoding

    Hi Experts
    This is the first time I am creating a PowerShell script and it is almost working. I just have some problems with the actual bulk import to SQL encoding from the text file since it replaces
    special characters with a question mark. I have set the encoding when creating the csv file but that does not seem to reflect on the actual bulk import. I have tried difference scenarios with the encoding part but I cannot find the proper solution for that.
    To shortly outline what the script does:
    Connect to Active Directory fetching all user - but excluding users in specific OU's
    Export all users to a csv in unicode encoding
    Strip double quote text identifiers (if there is another way of handling that it will be much appreciated)
    Clear all records temporary SQL table
    Import records from csv file to temporary SQL table (this is where the encoding is wrong)
    Update existing records in another table based on the records in the temporary table and insert new record if not found.
    The script looks as the following (any suggestions for optimizing the script are very welcome):
    # CSV file variables
    $path = Split-Path -parent "C:\Temp\ExportADUsers\*.*"
    $filename = "AD_Users.csv"
    $csvfile = $path + "\" + $filename
    $csvdelimiter = ";"
    $firstRowColumns = $true
    # Active Directory variables
    $searchbase = "OU=Users,DC=fabrikam,DC=com"
    $ADServer = 'DC01'
    # Database variables
    $sqlserver = "DB02"
    $database = "My Database"
    $table = "tblADimport"
    $tableEmployee = "tblEmployees"
    # Initialize
    Write-Host "Script started..."
    $elapsed = [System.Diagnostics.Stopwatch]::StartNew()
    # GET DATA FROM ACTIVE DIRECTORY
    # Import the ActiveDirectory Module
    Import-Module ActiveDirectory
    # Get all AD users not in specified OU's
    Write-Host "Retrieving users from Active Directory..."
    $AllADUsers = Get-ADUser -server $ADServer `
    -searchbase $searchbase -Filter * -Properties * |
    ?{$_.DistinguishedName -notmatch 'OU=MeetingRooms,OU=Users,DC=fabrikam,DC=com' `
    -and $_.DistinguishedName -notmatch 'OU=FunctionalMailbox,OU=Users,DC=fabrikam,DC=com'}
    Write-Host "Users retrieved in $($elapsed.Elapsed.ToString())."
    # Define labels and get specific user fields
    Write-Host "Generating CSV file..."
    $AllADUsers |
    Select-Object @{Label = "UNID";Expression = {$_.objectGuid}},
    @{Label = "FirstName";Expression = {$_.GivenName}},
    @{Label = "LastName";Expression = {$_.sn}},
    @{Label = "EmployeeNo";Expression = {$_.EmployeeID}} |
    # Export CSV file and remove text qualifiers
    Export-Csv -NoTypeInformation $csvfile -Encoding Unicode -Delimiter $csvdelimiter
    Write-Host "Removing text qualifiers..."
    (Get-Content $csvfile) | foreach {$_ -replace '"'} | Set-Content $csvfile
    Write-Host "CSV file created in $($elapsed.Elapsed.ToString())."
    # DATABASE IMPORT
    [void][Reflection.Assembly]::LoadWithPartialName("System.Data")
    [void][Reflection.Assembly]::LoadWithPartialName("System.Data.SqlClient")
    $batchsize = 50000
    # Delete all records in AD import table
    Write-Host "Clearing records in AD import table..."
    Invoke-Sqlcmd -Query "DELETE FROM $table" -Database $database -ServerInstance $sqlserver
    # Build the sqlbulkcopy connection, and set the timeout to infinite
    $connectionstring = "Data Source=$sqlserver;Integrated Security=true;Initial Catalog=$database;"
    $bulkcopy = New-Object Data.SqlClient.SqlBulkCopy($connectionstring, [System.Data.SqlClient.SqlBulkCopyOptions]::TableLock)
    $bulkcopy.DestinationTableName = $table
    $bulkcopy.bulkcopyTimeout = 0
    $bulkcopy.batchsize = $batchsize
    # Create the datatable and autogenerate the columns
    $datatable = New-Object System.Data.DataTable
    # Open the text file from disk
    $reader = New-Object System.IO.StreamReader($csvfile)
    $columns = (Get-Content $csvfile -First 1).Split($csvdelimiter)
    if ($firstRowColumns -eq $true) { $null = $reader.readLine()}
    Write-Host "Importing to database..."
    foreach ($column in $columns) {
    $null = $datatable.Columns.Add()
    # Read in the data, line by line
    while (($line = $reader.ReadLine()) -ne $null) {
    $null = $datatable.Rows.Add($line.Split($csvdelimiter))
    $i++; if (($i % $batchsize) -eq 0) {
    $bulkcopy.WriteToServer($datatable)
    Write-Host "$i rows have been inserted in $($elapsed.Elapsed.ToString())."
    $datatable.Clear()
    # Add in all the remaining rows since the last clear
    if($datatable.Rows.Count -gt 0) {
    $bulkcopy.WriteToServer($datatable)
    $datatable.Clear()
    # Clean Up
    Write-Host "CSV file imported in $($elapsed.Elapsed.ToString())."
    $reader.Close(); $reader.Dispose()
    $bulkcopy.Close(); $bulkcopy.Dispose()
    $datatable.Dispose()
    # Sometimes the Garbage Collector takes too long to clear the huge datatable.
    [System.GC]::Collect()
    # Update tblEmployee with imported data
    Write-Host "Updating employee data..."
    $queryUpdateUsers = "UPDATE $($tableEmployee)
    SET $($tableEmployee).EmployeeNumber = $($table).EmployeeNo,
    $($tableEmployee).FirstName = $($table).FirstName,
    $($tableEmployee).LastName = $($table).LastName,
    FROM $($tableEmployee) INNER JOIN $($table) ON $($tableEmployee).UniqueNumber = $($table).UNID
    IF @@ROWCOUNT=0
    INSERT INTO $($tableEmployee) (EmployeeNumber, FirstName, LastName, UniqueNumber)
    SELECT EmployeeNo, FirstName, LastName, UNID
    FROM $($table)"
    try
    Invoke-Sqlcmd -ServerInstance $sqlserver -Database $database -Query $queryUpdateUsers
    Write-Host "Table $($tableEmployee) updated in $($elapsed.Elapsed.ToString())."
    catch
    Write-Host "An error occured when updating $($tableEmployee) $($elapsed.Elapsed.ToString())."
    Write-Host "Script completed in $($elapsed.Elapsed.ToString())."

    I can see that the Export-CSV exports into ANSI though the encoding has been set to UNICODE. Thanks for leading me in the right direction.
    No - it exports as Unicode if set to.
    Your export was wrong and is exporting nothing. Look closely at your code:
    THis line exports nothing in Unicode"
    Export-Csv -NoTypeInformation $csvfile -Encoding Unicode -Delimiter $csvdelimiter
    There is no input object.
    This line converts any file to ansi
    (Get-Content $csvfile) | foreach {$_ -replace '"'} | Set-Content $csvfile
    Set-Content defaults to ANSI so the output file is converted.
    Since you are just dumping into a table by manually building a recorset why not just go direct.  You do not need a CSV.  Just dump theresults of the query to a datatable.
    https://gallery.technet.microsoft.com/scriptcenter/4208a159-a52e-4b99-83d4-8048468d29dd
    This script dumps to a datatable object which can now be used directly in a bulkcopy.
    Here is an example of how easy this is using your script:
    $AllADUsers = Get-ADUser -server $ADServer -searchbase $searchbase -Filter * -Properties GivenName,SN,EmployeeID,objectGUID |
    Where{
    $_.DistinguishedName -notmatch 'OU=MeetingRooms,OU=Users,DC=fabrikam,DC=com'
    -and $_.DistinguishedName -notmatch 'OU=FunctionalMailbox,OU=Users,DC=fabrikam,DC=com'
    } |
    Select-Object @{N='UNID';E={$_.objectGuid}},
    @{N='FirstName';Expression = {$_.GivenName}},
    @{N='LastName';Expression = {$_.sn}},
    @{N=/EmployeeNo;Expression = {$_.EmployeeID}} |
    Out-DataTable
    $AllDUsers is now a datatable.  You can just upload it.
    ¯\_(ツ)_/¯

  • "Convert file from:" error box

    Every time I click on a PDF file to download, the downloads window comes up and shows the download progress, and when the download finishes, a box appears that says "Convert File". In the box it says: Convert file from: then it lists various file types i.e., Text only, MS-DOS Text, Rich Text Format, HTML Document, Single File Web Page, Unicode Text and many more. It is trying to open a PDF file in Microsoft Word. I can't figure out how to change this. Help please?!

    That does not sound like Safari behavior. Are you using Safari to download, or another browser such as FireFox?
    Edit: Actually, I re-read what you wrote and saw that you said it was trying to open using MS Word. So I think the "convert file" message is coming from Word.
    Therefore, I think you have .pdf files currently set to open using MS Word. So after Safari completes the download, it is handing it off to MS Word to open, and MS Words is running and asking how to convert it to one of the formats Word supports.
    If the above sounds reasonable based on a lot of assumptions I made, you can try the following. First show any PDF file you already have in a Finder window. Right (Control) click on it, and select +Get Into+. In the Info window, look for +Open with+. In that section, if it currently set to open using Word, select either Preview (default setting) or +Adobe Reader+. Then, click the button below that setting that says +Change All+. This should change the setting so that all PDF files open with whatever app you selected that is not Word.

  • Stop Videos from Up-Converting during Encode

    Hello. I have a series of movies and audio tracks in MP4 and AC3, respectively. The AC3 files encode at amount the same size they are at, but the MP4 files become much larger (a 2.48MB file encodes to 44.7MB.) The videos are at 880x660 resolution. What should I convert to in order to stop this? Thanks! (DVD Studio Pro 4).

    OK, but I extracted the AC-3 from the MP4 files. Can i get rid of it completely in the files? The audio in the MP4 files encodes into huge sized... I want to strip it out, as the file size overall will be smaller.
    I'm not sure I understand what you're asking. You do want both audio and video on the DVD version, don't you?
    To be on the safe side, I'd go ahead and let Compressor also make new AC3 audio files at the same time you do the MPEG-2 encoding.
    -DH
    Message was edited by: David Harbsmeier

  • Converting files from wav to

    A lot of my music was downloaded to my zen player in the wav format. Can I convert those files or do I have to delete all of them and then reload the music?

    To convert from WAV or any other format to WMA (Windows Media Audio), you can download Windows Media Encoder from Microsoft.com
    http://www.microsoft.com/windows/windowsmedia/9series/encoder/default.aspx
    To convert a WAV to a MP3, you can use Amber Audio Converter,
    http://www.thebeatlesforever.com/processtext/abcmp3wav.html
    I don't know if that one costs money, but I know there is a free version out.
    --OR--
    I use DB Power AMP, and I use LAME MP3 encoding, which works fine
    http://www.dbpoweramp.com/
    and the LAME file you will need to use this is here:
    http://www.dlldump.com/download-dll-files_new.php/dllfiles/L/lame_enc.dll/-/download.html
    You need the LAME encoding file ONLY if yopu wish to use the product after 30 days, as the MP3 encoder in DMC Audio COnverter only lasts 30 days.

  • How can I access files from a flash drive that were previously saved using a Windows computer? When I attempt to open the file on MacBook Pro, it is asking to "convert file to"; I also have Microsoft Word installed on the Mac as well.

    How can I access files from a flash drive that were previously saved using a Windows computer? When I attempt to open the file on MacBook Pro, it is asking to "convert file to"; none of the options I choose work. I also have Microsoft Office (with Word) installed on the Mac as well.

    Format the external drive as FAT32 or ExFAT. Both computers will then be able to read and write to it.

  • I am trying to convert a file from pdf. I can't see it after I hit convert to word and view converted files. How do I know if I have a subscription? Adobe is on my mac dashboard.

    How do I tell if I have already paid for a membership? When I try to convert a pdf file to word, it looks like it is processing the task, but then I can't find the converted file when it says view converted file. Huh? Adobe is on my mac dashboard, I have had an account but can't see the results . . . thanks.

    Hi subscription question,
    I've checked your account; it looks like you tried to place two separate orders this morning, but it doesn't appear that either went through. However, it does sound as though you've been able to convert a file successfully. What happens when you log in to your account at https://cloud.acrobat.com/files? Do you see your converted file there? All converted files are automatically stored in your online account, even when you convert from within Reader.
    Best,
    Sara

  • Itunes is copying/converting 500gb of music from .wma to .m4a files that are on an external drive onto my laptop which doesnt have enough room. how do i reroute these newly converted files somewhere with enough space for them?

    itunes is copying/converting 500gb of music from .wma to .m4a files that are on an external drive onto my laptop which doesnt have enough room. how do i reroute these newly converted files somewhere with enough space for them?
    new to itunes, used windows media player before that and always ripped music directly to an external hardrive and accessed it through the player. now that i downloaded itunes it is taking from the external hardrive and copying a second file for each song onto my lap top hard drive which does not have the capacity for all my music. as itunes converts music files i want them saved back onto my external drive or another location i have space for rather than the lap top. how do i change the setting to move the itunes media folder to another location. assuming that hitting copy and past and dropping it in a random location will cause a few errors.

    When I have done this, all I did was network the two machines and copy the contents of the iTunes folder to the other machine, and that's it.
    My understanding (which may not be 100% correct) is that the one file that is absolutely necessary is iTunes Library, and that the XML file is actually a copy auto-generated from the iTunes Library, appearing in a different format only for non-iTunes apps that take advantage of the iTunes Library data.
    As far as I know, if you simply have the Library (database) file and all your original music files, iTunes on that computer should operate as it did on your old computer. I believe that the Album Artwork, Genius Data, and XML files can be regenerated from the Library file. Not sure about the Extras file.

  • Any idea why my saved documents are unable to be read? "convert file from" box pops up, applications are listed to use but if any are chosen, the file then opens but is in symbols

    When attempting to open saved documents for viewing a box pops up "convert file from" with applications that can be chosen from to use. When any of the options are chosen the document then opens but is in symbols and is unreadable. This is happening with all saved documents.  Can you offer any help with this?

    Hi,
    If you don't find any clue, you can send your file to me (guillaume.rouyreATgcosiDOTcom, replace cap) so I can give a try.
    Hope this helps,
    Guillaume Rouyre, MBA, MCP, MCTS |

  • How to edit a converted Word Document from a PDF file

    how to edit a converted Word Document from a PDF file

    Hi Edit Converted Word Doc,
    What's happening when you try to edit the file? Have you tried triple-clicking in the text block that you want to edit?
    Please let us know what sort of trouble you're running into. It would also be helpful to know how the PDF file was created, and what version of Word you're using.
    Best,
    Sara

Maybe you are looking for

  • Connection failover and transaction failover

    Connection failover and transaction failover I need to know more about a behavior in a RAC cluster. When a node goes down that is executing one of my transaction through JDBC , does the connection and transaction failover to a new node without me nee

  • SQL Developer vs TOAD - query performance question

    Somebody made me notice same queries are executing slower in SQL Developer than in TOAD. I'm rather curious about this issue, since I understand Java is "slow" but I can't find any other thread about this point. I don't use TOAD, so I can't compare..

  • Text Justify in text box

    I am using illustrator CS4 and I have text in text box and trying to equal justify. I have two columns of text in one page. I have created this brochure as follows 1. I use sheet 81/2x11 2. create two text boxes 3. import text from MS word documents

  • Technical field for invoice

    Hi Experts, tell me the technical field for invoice Thanks & regards narendra

  • Voip Server

    Hi all,        Is it possible to connect Voip server via blackberry 8300 .       if possible,  How to connect and make calls through it. Any samples... With Regards  Karthik.J