Characters Standart between Pc and Mac

Hi,
My application which is parsing html pages and output some part of this pages has no problem to manage the different charset when used on a PC with J2re 1.4.1 .
But this application used on a Mac Os X with J2re 1.3 output many wrong characters even if I convert all the string output in ISO-8859-1 ( even if this conversion solves many problems). I format the String with this line :
test= new String(old_test.getBytes(), "ISO-8859-1");
The only way I've found is to isolate and convert the wrong characters one by one by this way :
test = test.replace('\u009c','\u0153'); // for example
Is there any global alternative solution ?
Thanks,
Thieum

First, thanks for your responses.
Few precisions :
I mainly handle French web pages, so UTF-8 is not efficient to manage all the different characters, and even Mac Roman is not able to do it. I think that Apple Java Virtual Machine doesn't manage the incoming data like the Windows one, because on PC, I don't have this charset problem.
Brumbaer, your proposition of adapting the conversion system to the charset is intersting, but I didn't found an efficient method to detect the charset of an HTML document that need to stay in HTML to be parsed. The problem is that the getEncoding method return null most of the time, because it is not required to specify the charset in an HTML document.
Maybe the only solution is to wait for an apple java virtual machine as efficient as the windows one to manage the charsets. But maybe there's another solution. to be continued...
Thanks,
Thieum

Similar Messages

  • Sharing files between users and macs

    My husband and I share an iMac. I have a MBA for traveling and my husband a PC laptop (though he rarely uses for private stuff). We both have iPhones.
    We are looking for a way to:
    - Share our photos (we don't use iPhoto) and some files. We would like to have this in one shared folder, that we can access from both accounts in the iMac, the MBA and ideally (though not a must) the PC and iPhones. We would both need to have admin rights to edit documents, etc.
    - Have access to all the information in my account on the iMac from the MBA. Ideally, same thing for his and the PC.
    - Have access to all the data remotely when traveling.
    - Have all the data backed up locally (we already have a cloud backup, but we'd like to have a local backup too as it's easier and quicker to access)
    We have read a lot about configuration, NAS, time capsule... but we get more and more confused, as we are obviously no tech experts.
    Dropbox is not our preferred choice. We already have a cloud backup system. We'd rather have the files stored and accessed locally for everyday use.
    Using a NAS to store shared folders and backup the rest sounds good, but they either seem very complicated to set up, or they have mixed reviews in terms of stability, especially to access files remotely.
    Timecapsule seems easier and more straightforward, but I'm not sure it would solve the "sharing files between users and macs with admin rights"? It seems to be more focused on backing up the main drive and then providing access to the backed up files. (Though I might be completely mistaken!)
    We just can't manage to have one shared folder between both accounts in the iMac. We need to grant admin rights document by document. We don't manage to make it work automatically so we both have one folder to access with full rights for all the contents inside it. And this seems to me like something that should easily be done...?
    Any help, advice, proposals... would be greatly appreciated!!!

    Move any file you want to the other user to access to the Shared Folder. Anything you put in that folder is available to all users.
    The shared folder is here:
    Macintosh HD > Users > Shared

  • Share iTunes libraries between Windows and MAC

    Hi all i've an wifi via "Base AirPort" i've an HD shared between MAC and Windows sistem via the BASE, the iTunes library that i've stored in the HD is non redable for iTunes on Windows because it need an *.itl file...
    How can i share an iTunes library between Windows and MAC???

    I would like to report back that after struggling for months to get Tune Ranger to work that it is complete rubbish. The first time I tried to sync my libraries (between an empty iTunes library and my existing one) it created duplicates all over the place in my library and generally made a huge mess of everything. The support person (who I suspect is the only person over there) gave me some guff about my id3 tags being corrupt but it was clear that every song that appeared in a playlist was getting duped. Once I fixed this (many weeks later) I tried a one way sync after fiddling with the preferences of Tune Ranger to try to make it work, but it simply wouldn't.
    I don't know if anyway has had success using TR where they are also trying to sync playlists, but if you have, I would certainly like to know what you settings are.

  • The best way to transfer videos between devices and mac?

    I have an iphone 4s, ipad and a macbook pro - is there any way to transfer videos wirelessly betwen these platforms?
    As far as I know icloud only allows photostream of photos only but nit videos. This is quite inconvenient for video users as I normally take videos using my iphone 4s and would like to edit using ipad/mac's iMovie. I suppose I could transfer videos using a wire between iphone and Mac (still a PAIN without being able to transfer wirelessly), and what about between iphone and ipad? I understand Apple might be concerned about storage and speed for video transfer via icloud, if we could selectively do the transfer and have the option to delete them from icloud after the transfer it will be very much easier for video editor like myself.
    Or have I just missed something? Is there indeed a way to do so??

    If you want to transfer photos and videos from the Mac to the iPhone (but not in the other direction) you can use iTunes and sync via wi-fi: http://support.apple.com/kb/HT1386
    If you want to wirelessly tranfer videos in the other direction you may want to look into a 3rd party app such as http://www.photosync-app.com Note that I have not used that app so be sure to investigate others as well.

  • How to share files between pc and mac via external hard drive

    how can i share my files(mp3,mp4,documents) from my harddisk with mac. i am a new mac user and i have a harddisk of NTFS format(as i was a pc user).I learned that mac supports FAT32 format and therefore i can't write data on my external hard drive.
    but, reading a section of OSX yosemite(under compatibility) it is said that now we can easily share files between pc and mac.
    So please suggest me easier way that how can i share files between macs and pc as my friends uses pc and in future i really want to share my data with them without any hustle and i dont wanna loose my data in future

    You can format the HDD to a common one like ExFAT or Fat32 but a reformat will delete all data off of the HDD.
    Your other option is to use a third party software such as Paragon or Tuxera that will allow you to write to a NFTS formatted HDD.
    Ciao.

  • Does anyone know if there is a way to share files between Mavericks and Mac OS 9.1 operating system?

    Does anyone know if there is a way to share files between Mavericks and Mac OS 9.1 operating system? When I try to connect from my iMac I get a window that says "The version of the server you are trying to connect to is not supported." Is there a work-around to this problem or is it just not possible? It would be largly appriciated for a solutin beings my business is a small town newspaper, and we have some important files on the older computer that need to be acessed daily.

    Actually to share files between OS 8-9 and OS X, all versions, is quite easy from what I read. Look here for some details.
    http://reviews.cnet.com/8301-13727_7-20003464-263.html
    And here.
    https://www.google.com/search?q=file+sharing+Mac+OS+9.x&oq=file+sharing+Mac+OS+9 .x&aqs=chrome..69i57.20706j0j1&sourceid=chrome&ie=UTF-8
    Or since both OS 9 and OS X can do SMB Windows sharing you could use that protocol to share files from one to the other.
    Doesn't really matter what OS you are using. Mac OS/OS X shar files with Windows computers of all types and versions of Windows so the same applies for the different versions of Mac OS/OS X.
    Each Operating System takes care of reading and writing files to there respective file formats of the hard drives so that does not have to be the same. They both just have to be able to do Ethernet with the same files sharing protocol.

  • 2-way Trust Relationship between Windows and Mac Domain

    Hi guys I hope someone can help me.
    Just a quick explanation of what I am trying to do.
    I have an Xserve running OSX 10.5.8 server, which is the OD Master. On that server I’m running Kerio mail server. I have a Microsoft 2003 server running AD.
    The problem is I need to run BlackBerry Enterprise on the Windows server as the BlackBerry need active directory to work.
    Since I have both system already running, I do not want to destroy my open directory just to get the BlackBerry working.
    So what I have tried to do is create a 2-way Trust Relationship between the 2 domains, so the BlackBerry server will talk to the Kerio mail server.
    The trust relationship appears to create fine from the Windows server side, but I’m not able to retrieve LDAP information from the open directory server.
    The creation from the OSX server starts fine automated but then I had to finish it manually.
    Has anyone else here created a 2-way trust relationship between Windows and Mac’s before? Any help on how you did it would be appreciated. Thanks

    Have you checked on when the computer last checked in and changed the computer account password with the domain?  When a computer changes it's password, Active Directory will store only the current password and it does not expire.  The workstation
    will store both the current password and the previous password.  This for cases when you may restore Active Directory to a point before the computer password change.  
    To handle this, the workstation will try it's current password, then it's previous.
    If you're restoring the workstation to a previous point in time, you may be rolling the stored passwords back too far for Active Directory to accept.  I would only imagine this to be the case a handful of times if you're going back 1-2 days.
    Are you experiencing 100% failure?

  • Difference between PC and mac?

    With the Intel-based macs, we can install Windows on a mac and run it as if it's running on a PC. That leads me to a question. What exactly is the difference between PC and mac? I know they are different on the OS, but that's just on a software level, which I don't think constitutes the difference. The hard drives are formatted differently on both machines, I know, but we can still use the same hard drive for both a PC or a mac, we just have to format it the right way. So what really is the main thing that constitutes the difference between a PC and a mac? Putting it this way, I can run PC on a mac, can I do it the other way round? Can I install a Mac OS 10.5 on a pure PC made by companies like hp or Dell (or I can easily make one on my own) with an Intel Core 2 Duo/Quad processor, and run the machine like it's a mac?

    Allan Eckert wrote:
    While some have managed to hack things so that they can install OS X on a PC, the results have been not very reliable. Generally OS X has many part that do not function properly.
    It doesn't work well because the Mac hardware itself is different from what is found in any other Intel-based computer. Even the CPU's & support chips are not off-the-shelf Intel parts but variants optimized for Macs that are not available to other computer makers or to DIY enthusiasts.
    This is probably why for a time in 2007 the 'fastest Windows notebook on earth' was a MacBook Pro, as tested by PC World, a fact touted for a while in Apple TV ads. (It lost that title to a more conventional Wintel laptop about a month later, but the new champ cost over $5000, had "almost nonexistent" battery life, & weighs over 11 pounds, which should give you some idea of the advantages an Intel-Apple collaboration has over the competition.)

  • I had formatted external HDD as Mac OS Extended(journaled) earlier, but now i want to format the same as ExFAT so that i can copy files between PC and MAC. But it is giving 'Can't unmount' error while i try to run Erase

    I had formatted external HDD as Mac OS Extended(journaled) earlier, but now i want to format the same as ExFAT so that i can copy files between PC and MAC. But it is giving 'Can't unmount' error while i try to run Erase

    Use the PC to reformat the drive.

  • Migrate Collections between Win and Mac versions of Bridge

    Would like to know if it is possible to migrate Bridge collections between Windows and Mac machines.
    On the two respective main machines one or two of the the root folder names differ, but the subfolder structures are the same.
    In addition, both machines can access other resources from a common USB drive, so that any collections of images from that drive will have identical paths.
    Would like to avoid repeating the collection-building process if it is possible to migrate the data from one machine to another.
    Please let me know what is possible.

    You could just copy the photos from one machine
    to another and then let the cache build.  You have to make sure you export the XMP files along with the photo or you will lose edits and some info.
    If you can move them with Bridge this is the best bet to keep all the pieces together.  If you are using just central cache you will have to explore the option of "export xmp files"in one of the dropdown boxes.  Not at a computer with Bridge on it..

  • Hi, I need to import contacts from windows outlook to MAC outlook. I need the field mapping document between windows and mac outlook.

    Hi, I need to import contacts from windows outlook to MAC outlook. I need the field mapping document between windows and mac outlook.

    Then I suggest you post your question the Microsoft Mac forums since it's their products you're having trouble with
    http://answers.microsoft.com/en-us/mac

  • HT204150 I have recently switched to the latest i-phone. my contacts are updated by i-cloud between phone and mac laptop.there are only about 720 contats showing on phone from app. 1250 on the computer. please advise how to correct phone

    I have recently switched to the latest i-phone. my contacts are updated by i-cloud between phone and mac laptop.there are only about 720 contats showing on phone from app. 1250 on the computer. please advise how to correct phone

    On the mac, only contacts in the "iCloud" section will sync to other devices.  Those in the "On my mac" section do not.  Could that be your problem?
    To test the icloud situation, log into icloud.com with your mac's safari and to to the contacts page.  What you see there is what icloud has received from mac and iphone. 

  • Settings, can transferred between PCs and Macs ...how?

    PS CS6 or PS CC and Lr 5 settings, can transferred between PCs and Macs ...how? eg watermarks in Lr export

    Lightroom
    Open Lightroom Preferences. In the panel labeled Presets click on the button labeled 'Show Lightroom Preset Folder...' An OS window will open containing multiple folders. The Lightroom Presets folder should be highlighted. You can copy this entire folder, the subfolders within it or individual templates/presets from the PC to Mac or vice versa
    With Photoshop CC it's possible to Sync a sub set of your settings across the Creative Cloud. However, you'll need to set up the CC account. Sync settings can be found under the Photoshop menu on Mac and Edit menu on Windows.
    With Photoshop CS6 you'd be best asking the question on Photoshop forum http://forums.adobe.com/community/photoshop

  • Sharing Library Between PC and Mac

    Hello all,
    I recently transferred my iTunes library from the PC to an AirDisk. The annoying thing is that when I open iTunes on the Mac, it does the "Updating iTunes Library" which takes a while to complete. When I open iTunes on the PC, it does the same thing. Is there a way to prevent this from happening? Or is this the nature of sharing an iTunes library between PC's and Mac's?
    Thanks
    Mac mini (1.42 GHz PPC) | MacBook (2.0 GHz C2D) | Mac OS X (10.4.9) | PC with XP SP2

    Sorry I should explained it better. I'm talking about how it seems the OSX iTunes is doing some converting when the library was last opened with the Windows iTunes. It takes 30 minutes for this coversion to complete. If I open the library in OSX, and it was last accessed by the OSX iTunes, there is minimal delay. I assume there is some conversion because (1) the iTunes Library file increases in size; and (2) the kind of file reported by OSX changes from iTunes Database File to a Unix Executable File.

  • Here's how to sync your Notes between iPad and Mac

    This is not immediately obvious and took me several conversations with various AppleCare techs before I finally got the solution as to why my notes on my iPad where not syncing to my Mac Pro. The problem seems to be that you can't sync if you only have Notes on your iPad. You must have notes on your Mac to which unlike Calendar and Contacts don't have corresponding standalone applications, iCal and Addressbook, respectively. Notes exist within Mac Mail. I only had Notes on my iPad and none on my Mac Pro. In this event here's what to do to get setup and syncing:
    SETUP:
    1. Go to System Preferences on your Mac > MobileMe > Sync > and make sure Notes is checked although, syncing via the cloud apparently won't happen until iOS 4.2.
    2. With Mac Mail launched, if you've never created a note in Mac Mail, in the left column you should see:
    MAILBOXES
    ON MY MAC
    RSS
    or if you've created some notes on your Mac Mail, you'll see:
    MAILBOXES
    REMINDER
    - Notes
    ON MY MAC
    RSS
    The key is you have to have REMINDERS created. So if you don't have it created, when you sync your iPad and Mac, the iPad doesn't know what to do as there's no "receptacle" for it's notes on your Mac.
    So in Mail, in the top of the window create a new Note, click the notepad icon to the right of the New Message.
    Now REMINDERS will be created in Mail's left column with this new note. You can simply put "Test" or whatever and click "Done" in the upper left of the Note's window.
    3. Plug your iPad into your Mac, in iTunes, in the left column click your iPad under DEVICES the Info tab in the top. At the bottom of the page is "Other" > click: Sync notes. Do NOT click the checkbox "Notes" in the next section under "Advanced"
    4. Click "Apply" at the bottom of the page and your iPad and Mac will begin to sync. It may take awhile as I believe it is doing both a sync and backup.
    Once this process is done, you'll see your notes fully sync'd on your iPad and Mac. Yea! but there's more...
    5. Notes created in Mac Mail show up in 2 places: your MAILBOXES > Inbox and under REMINDERS > Notes, and if you delete the Mac Mail note in your inbox, it deletes the note in your REMINDERS.
    This is unfortunate and not great interface design IMHO and should be remedied.
    Luckily the last Tier 2 AppleCare tech I just spoke with had a workaround for this, which is:
    6. Create a new mailbox inside Notes under REMINDERS. Click Notes, then go to Mailbox > New Mailbox... in the top of your monitor screen.
    Under the location pulldown it should show a notepad icon and On My Mac.
    For the Name, I called my new mailbox "iPad Notes" Then click OK.
    Then a triangle appears next to Notes mailbox to access this new subfolder (iPad Notes) and you then drag your now sync'd notes from Notes under REMINDERS to your "iPad Notes" subfolder under Notes. Now your left column will look like:
    MAILBOXES
    REMINDERS
    -Notes
    --iPad Notes
    ON MY MAC
    RSS
    Doing this drag to "iPad Notes" will remove the note(s) from your inbox, but keep it in your REMINDERS and thus be available for Syncing, which currently can only be done with your iPad when plugged in via USB to your Mac.
    Apparently, in iOS 4.2, you'll be able to use MobileMe to sync Notes just like Calendar and Contacts. We'll see.
    I hope this is helpful. It took me awhile to get all this set up, and being that I am not an AppleCare tech, if you have questions instead of asking me, I recommend you call AppleCare and review with them. Let them know I got the above info from Tier 2 support.
    Once iOS 4.2 and Lion come out, all this may, hopefully be a simpler process, but as of this writing, pre 4.2 and Lion, this is now working on my iPad and Mac Pro.
    Good Luck.
    Steven

    Thanks ,,, but when I "Go to System Preferences on your Mac > MobileMe > Sync > and make sure Notes is checked"
    I CANNOT check the "Notes". It is NOT highlighted. MAYBE because I am NOT logged-in to mail.mac.com?
    Is this why my Sync Notes between MacBook Pro and iPAD 2 does NOT work?
    How do I fix it?
    Also I continue to get Error Message "smtp.mail.com" password not accepted.
    I DO NOT know my mail.mac.com password.

Maybe you are looking for

  • HPE-570F won't wakeup from hibernate mode

    I have just bought a brand new HPE-570F, Serial Number {Removed for privacy} It will not wake up after putting itself in sleep mode. How do I fix this? It's brand new!

  • Java 7

    iMac 21.5 inch, Mid 2011 Software: Mac OSX Lion 10.7.5 (11G63) Safari: Version 6.1.6 (7537.78.2) Processor: 2.5 GHz Intel Core i5 Memory: 4GB 1333 MHz DDR3 Graphics: AMD Radeon HD 6750M 512 MB Should I keep the following plug-ins on my Mac? Are they

  • System is not working.

    An error occured when trying to access the service ????

  • How do I export a frame with the Lumetri effect applied?

    I've done some color correcting in SpeedGrade (dynamic link in Premiere as the Lumetri effect) and I want to use the Export Frame button in the program monitor in Premiere. It seems like this would be a trivial task, however, I can't seem to export a

  • Can't open Numbers spreadsheet on iMac Yosemite

    iMac 3.2; 8gb Yosemite 10.10.2 Numbers 3.5.2 (2118) When I click on File: Open, I get a complete list of all my spreadsheets but several are greyed out and have the iCloud download symbol next to them. I can't open these spreadsheets and don't know h