Image with foreign characters in name won't display

I have an image on my drive whose name has foreign characters ("c�pia de frente.jpg"). To display the image my JSP reads the image name from the database and generates the following html:
<img src="../pictures/c�pia de frente.jpg">The page then displays a broken image icon for this image. Images in the same list which do not have foreign chars get displayed accurately. When I choose "show image.." in my browser I see that the image name has been rewritten into the following: c%C3%B3pia%20de%20frente.jpg. The rewriting that will display the image is instead c%F3pia%20de%20frente.jpg. I found the correct rewriting on another of my JSP where the image with the foreign chars actually gets displayed correctly although the code to generate the html is the same on both pages and looks something like this (simplified):
<logic:iterate id="listelement" name="list" property="rows" scope="request" type="org.apache.commons.beanutils.DynaBean">
<%         
out.write("<img src=\"../pictures/"+listelement.get("name").toString()+"\">");
                         %>  <br>                     
                        </logic:iterate> Every image that doesn't have foreign chars in its name gets displayed accurately but images with foreign chars in their names won't display. What am I doing wrong?
Thanks
Niklas

Thanks, but it doesn't seem necessary to replace foreign characters. It works without replacing in one place but not in another which is confusing. I think it is something with the enconding but can't see what the difference is between the working and non-working code. In both pages I have put <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">I'd greatly appreciate any more suggestions to solve this problem.

Similar Messages

  • ITunes crashes on attempt to play media with foreign characters

    Recently, over the last few versions I have been unable to play any of my media that includes foreign characters, be it Asian characters or accented Roman characters. The fact of the matter is that upon attempting to play a song / audiobook / movie with a foreign character iTunes crashes.
    I am using iTunes 10.6.1.7 on Windows 7 64-bit in English (UK) with non-unicode set to Japanese.
    Windows crash report:
    Problem signature:
      Problem Event Name:          BEX
      Application Name:          iTunes.exe
      Application Version:          10.6.1.7
      Application Timestamp:          4f71aced
      Fault Module Name:          amip.dll
      Fault Module Version:          2.6.7.0
      Fault Module Timestamp:          4b63548c
      Exception Offset:          000b5954
      Exception Code:          c000000d
      Exception Data:          00000000
      OS Version:          6.1.7601.2.1.0.256.48
      Locale ID:          2057
      Additional Information 1:          3191
      Additional Information 2:          319160cfbcc1295d9ca9b4d448d8f7e3
      Additional Information 3:          62c3
      Additional Information 4:          62c3b5fb8ab287fc898b342b661d3806
    The media with foreign characters syncs with my iPhone okay, and will play without issue on it; just iTunes is unable to play said media on my computer, which is highly frustrating.
    I would be appreciative if someone has found and would share any work-around to this problem. Thanks.

    I still have no thorough concept on how I have solved this but I suppose if anyone else has encountered this issue I can share how I worked around it:
    I changed my windows system non-unicode locale back to its default (English UK).
    I then installed Microsoft AppLocale to handle the programs that would be affected.
    For experimental reasons I then set my iTunes executable to have Japanese locale through the AppLocale program.
    It now operates fine and will play files with foreign characters.
    Try it if you experience the problem's I've been having.

  • Why can't I import clips with foreign character file names?

    What the **** man?
    I've got a series of clips with foreign character file names that FCP will not let me access via the Import->File method. Some of the offending character sets include Chinese, Arabic, and a couple of less well known Unicode sets like Cherokee and Inuktitus.
    What's interesting is that I can easily drag the clips onto the TL manually via Finder, but not File->Import. Also, XML passed to FCP that includes foreign character file names is ignored. Seeing as FCP is an Apple product I would have expected proper Unicode support 4 years ago.
    Obviously I don't need a workaround per se... But I'd very much like to know why this is the way it is. We're developers doing development work for FCP so it's important for us.

    We're developers doing development work for FCP so it's important for us.
    Then you have a more direct path to the FCP engineers than this forum. Send them feedback directly. This place is user to user - no apple employees are officially here.
    good luck.
    x

  • Mail will not display images with .jpeg extension. .jpg works fine. (displays in place when opening the email. What plug-in would correct this?

    Mail will not display images with .jpeg extension. .jpg works fine. (displays in place when opening the email. What plug-in would correct this?

    If you think you're insane now, try maintaining those pop up menus.
    As far as I know, these menus have not been updated since FW 8, so 
    they are at least two versions old.
    Save yourself a lot of grief by avoiding those menus. There are many 
    other products on the market which do a much better job of creating 
    and maintaining this type of navigation structure.
    Read this link before you climb any higher on this slippery slope:
    http://apptools.com/rants/jsmenu.php
    There was another blog post by the fellow who originally wrote the pop 
    up menu feature, but I can't seem to locate it. Even he says stay away 
    from them.
    Not the answer you probably want, but I hope it helps, nonetheless.
    Jim Babbage

  • Sorting of contacts with foreign characters in the name

    Hello,
    I have a large address book, some with Japanese characters in their name.
    I'm on English Language setting for the OS on my iphone and ipad.
    All the contacts with Japanese characters in their name seem to get pushed to the # section of the alphabet rather than at the equivalent roman alphabet letter.
    Also note that adding the Japanese name in the secondary fields of "phonetic first" and "phonetic second" of an existing Roman English based contact sends this to the # section.
    This is poor sorting of contacts. 
    Very poor....

    After posting this I found a solution.  I hadn't tried it this way round.
    https://discussions.apple.com/message/7589528#7589528
    Go into one of your Japanese contacts and click edit.
    Go right to the bottom of the edit page and add field, add phonetic first name, then repeat the step to add phonetic last name.
    Now edit the name of your contact, keep their name in Japanese and enter the phonetic spelling in English.
    Smashin....  :-)

  • Character Encoding for IDOC to JMS scenario with foreign characters

    Dear Experts,
    The scenario is desribed as follows:
    Issue Description:
    There is an IDOC which is created after extracting data from different countries (but only one country at a time). So, for instance first time the data is picked in Greek and Latin and corresponding IDOC is created and sent to PI, the next time plain English and sent to PI and next Chinese and so on. As of now every time this IDOC reaches PI ,it comes with UTF-8 character encoding as seen in the IDOC XML.
    I am converting this IDOC XML into single string flat file (currently taking the default encoding UTF-8) and sending it to receiver JMS Queue (MQ Series). Now when this data is picked up from the end recepient from the corresponding queue in MQ Series, they see ? wherever there is a Greek/latin characters (may be because that should be having a different encoding like ISO-8859_7). This is causing issues at their end.
    My Understanding
    SAP system should trigger the IDOC with the right code page i.e if the IDOC is sent with Greek/Latin code page should be ISO-8859_7, if this same IDOC is sent with Chinese characters the corresponding code page else UTF-8 or default code page.
    Once this is sent correctly from SAP, Java Mapping should have to use the correct code page when righting the bytes to outputstream and then we would also need to set the right code page as JMS Header before putting the message in the JMS queue so that receiver can interpret it.
    Queries:
    1. Is my approach for the scenario correct, if not please guide me to the right approach.
    2. Does SAP support different code page being picked for the same IDOC based on different data set. If so how is it achieved.
    3. What is the JMS Header property to set the right code page. I think there should be some JMS Header defined by MQ Series for Character Encoding which I should be setting correctly) I find that there is a property to set the CCSID in JMS Receiver Adapter but that only refers to Non-ASCII names and doesn't refer to the payload content.
    I would appreciate if anybody can give me pointers on how to resolve this issue.
    Thanks,
    Pratik

    Hi Pratik,
         http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/502991a2-45d9-2910-d99f-8aba5d79fb42?quicklink=index&overridelayout=true
    This link might help.
    regards
    Anupam

  • Empty datafile with special characters in name

    Hello all
    I'm having an issue with an empty datafile that is in recover mode.
    Previously the following has been successful :
    alter database create datafile 'fully_qualified_file_name' as 'fully_qualified_file_name' ;
    recover datafile 'fully_qualified_file_name' ;
    alter database datafile 'fully_qualified_file_name' online;
    However this time it doesnt work as I get errors :
    ORA-01516: nonexistent log file, data file, or temporary file
    Using the file id doesnt work either.
    When I created a control file trace I can see the datafile has special characters in the name :
    '/oracle/PRD/112_64/dbs/PSPR3I ^?;^?'
    As it is empty, would it be possible to create anothr empty datafile
    using :
    alter database create datafile '/oracle/PRD/112_64/dbs/PSPR3I ^?;^?'
    as '/oracle/PRD/spdata2/r3i_8/r3i.data8';
    then recover datafile 'fully_qualified_file_name' ;
    alter database datafile 'fully_qualified_file_name' online;
    How do oracle commands cope with special characters?
    Thanks for your advice

    user6737818 wrote:
    Hello all
    I'm having an issue with an empty datafile that is in recover mode.
    Previously the following has been successful :
    alter database create datafile 'fully_qualified_file_name' as 'fully_qualified_file_name' ;
    recover datafile 'fully_qualified_file_name' ;
    alter database datafile 'fully_qualified_file_name' online;
    However this time it doesnt work as I get errors :
    ORA-01516: nonexistent log file, data file, or temporary file
    Using the file id doesnt work either.
    When I created a control file trace I can see the datafile has special characters in the name :
    '/oracle/PRD/112_64/dbs/PSPR3I ^?;^?'
    It should work using a file number as the source file definition and a new name for the new file. Works for me:orcl> alter database create datafile 7 as 'c:\tmp\newname.dbf';
    Database altered.
    orcl>

  • Exporting images with subfolders by album name

    Hello,
    I have a project with approx 800 images, organized in 12 different albums. Now I want to export all the images in a folder, which should contains 12 subfolders named with the original album names.
    For example, I have a project named "friends" which contains 12 albums named "Emma", "Laura", "Tom", etc... A want to export in order to have this subfolders:
    Friends/Emma
    Friends/Laura
    Friends/Tom
    I tried the export-versions option "subfolder format", but I'm not able to do that.
    Who can help me?
    Thank you,
    Paolo

    One last idea
    you could color label the pics.
    For example all images of Emma in the album "Emma" get a red label, all images of Laura get a blue label, ....
    There a seven colors available like in Finder. This perfectly matches with your needs^^ Seven persons get a different color each, one person gets no color. So you have 8 criterias. Lucky you, not having nine people :P
    Click on your project with all 800 pics and their different color labels, select all and export them.
    Aperture now will give each exported image the same color label as it has in Aperture. After export has finished you can easily put the images in a corresponding folder based on the color label...
    Have fun

  • CuePointNames with foreign characters

    Updated an application to Director 11.5 and have some problems with danish characters in the cuepointNames.
    The application have worked the last 5 years, but now it behaves really strange.
    I've tried to set the codePage when Updating movie to several different  tables, but still the same problem.
    I can't even change the name myself, 'cause there's a difference between whats in memory and what it shows in the variable.
    Does anyone have any idea what's wrong ?
    Thanks in advance
    cheers
    John Kanding

    But what's the system/logic in a word like "køber" ends up in "kk" ?
    A little further analysis shows just how wrong Director/Lingo gets it. I amended your movie script to
    on startMovie
      mem = member(1,2)
      mem.url = "@/udtale_fokus.swa"
      mem.preLoadBuffer()
      mem.soundChannel = 2
      play (mem)
      cp_names = duplicate(mem.cuePointNames)
      len = cp_names[1].length
      put cp_names, len
      repeat with c = 1 to len
        tChar = cp_names[1].char[c]
        put tChar, charToNum(tChar)
      end repeat
      jsCharCodes(cp_names[1])
    end
    and added a JavaScript syntax function to a new movie script:
    function jsCharCodes(str) {
       var len = str.length;
       trace("length: " + len + " " + str);
       for(var i = 0; i < len; i++){
         trace(i + " " + str.charAt(i) + " " + str.charCodeAt(i));
    and I get the following output in my message window:
    -- ["kber"] 2
    -- "k" 107
    -- "ber" -1
    // length: 4 kber
    // 0 k 107
    // 1 b 98
    // 2 e 101
    // 3 r 114
    Note that the 3rd line above ( -- "ber" -1) displays in my message window as ( -- """ -1)

  • Bug in Application Export? Globalization messages with foreign characters

    I've encountered a problem with Shared Components, Text Messages. I input some strings using Norwegian characters (øæå).
    When I export the application, the characters come out with the wrong encoding in the SQL script (and the messages display wrong when the application is imported and run).
    Here's an example:
    prompt ......Message test_nor_chars
    declare
    h varchar2(32767) := null;
    begin
    h:=h||'Test av æøå ÆØÅ hei hei';
    wwv_flow_api.create_message (
    p_id=>1700323001958037277 + wwv_flow_api.g_id_offset,
    p_flow_id=>wwv_flow.g_flow_id,
    p_name=>'TEST.NOR.CHARS',
    p_message_language=>'no',
    p_message_text=>h);
    null;
    end;
    The string
    'Test av æøå ÆØÅ hei hei'
    should be (was entered as, and displays in the Apex builder as)
    'Test av æøå ÆØÅ hei hei'
    I thought this was a problem with my local database, but I was able to reproduce this on apex.oracle.com as well.
    Is this a bug, or just me doing something wrong?
    - M

    >
    Why is this? I really have no idea. I've seen a lot of globalization issues, but this one just seems like an underlying database bug, and certain manipulation of an in-memory CLOB. I'll take a look at it further, but hopefully this workaround (by specifying a dummy application attribute with Norwegian characters) can at least get you going.Hi Joel,
    thanks for looking into this. I did as you suggested and put some Norwegian characters into the Application Comments section. I then exported the application and the characters did not get corrupted in the export file.
    However, when I import the application from the file (using SQL Developer's "Import Application..." menu item) into another database, the strings end up with corrupted characters in the database. This happens both for the Application Comment (which I can see in flows_030100.wwv_flow_banner) and the messages (flows_030100.wwv_flow_message$) which have Norwegian characters. This is strange, as it looks OK in the export script, but ends up wrong in the database when the script is run...
    I tried the same at apex.oracle.com (exported app id = 52885 and imported it as app id = 63067), and it seems to be okay there. There is an option when you import an application through the web interface to select character set (which defaults to UTF-8, I used this). This choice is not available when importing through SQL Developer. Could this be relevant?
    (The reason I use SQL Developer to import the app is because the server has a runtime-only installation of Apex.)
    Would appreciate if you could look further into this. Thanks,
    - Morten

  • Contact name won't display

    Incoming calls and messages with international prefix (e.g. +1) won't display the name of the contact.  Those without a prefix do display.  Can someone help me figure out why and how to fix it?

    check that you dont have that number duplicated in your contacts list. Try deleting the contact and re-entering it. Remember if you solve the problem the messages that are already in the inbox wont change to show the name.

  • Problems with foreign characters

    I've had the problem of iTunes not displaying foreign (Japanese in my case) characters. I do have proper language packs installed and I've seen these characters work on other people's computers. My iPod displays them perfectly too. Is there a setting within iTunes I need to change?
    I've also already tried a reinstall of Windows and a reinstall of iTunes.

    Have a look at Tome Gewecke's User Tip and let us know if it provides any helpful information for you.

  • Some fonts have wrong "internal names," won't display properly in font menu

    Several fonts which I have acquired over the years have a peculiar but bothersome problem.
    The fonts' "file names" in the Finder are perfectly fine, and the files are named what they're supposed to be named. And when the fonts are "installed," they work perfectly fine in all applications, as they are supposed to. But here's the problem: the fonts are mis-named in each application's "font menu." In my case, most of the font names (which are of the standard English alphabet and have standard English font titles) instead appear listed as a long string of Chinese characters.
    As a random example, a font called "Holiday Ranch" made by FontDiner is not listed alphabetically between "Hoefler" and "Impact" in my font menus, where it ought to be, but instead is listed at the end of the font menu list, after "Zapfino," as a long string of Chinese characters. This wouldn't be such a problem if there were only one or two fonts misnamed this way, but when (as I do) you have 25 fonts at the bottom of your font list, all of which are long strings of incomprehensible characters, then it becomes a problem indeed.
    The fonts come from a variety of sources, so it can't be a flaw in just one company's coding. I contacted (as per the example above) FontDiner, but so far they have no response. But for other mis-named fonts in my collection, I don't even know who designed them or where they came from, so I can't ask the designer for a solution.
    Keep in mind that all of the fonts work perfectly fine, once I've tracked them down in the big morass of hard-to-find misnamed fonts at the bottom of my font menus. They work in all Apple applications like TextEdit, they work in Adobe products like Illustrator, they work in MSWord -- they work everywhere. The only issue is the naming.
    Also, the file names are all correct. In the example above, the file name for "Holiday Ranch" is "Holiday Ranch.ttf". And when I inspect the font with Linotype's "FontExplorer X," it is listed properly as "Holiday Ranch." But here's the key: When I open the font file in Apple's "Font Book" (v.2.2.1), the name is indeed listed there as a long string of Chinese characters, and when I install it onto my computer using Font Book, it unfortunately uses that name.
    I've tried downloading a wide variety of "font tool" programs, but none have been able to fix this problem.
    I also tried (using FontExplorer X) "Cleaning system font caches" and "Cleaning application font caches" and restarting, but that had no effect whatsoever. I don't think it's an error on the part of OSX, I think that the fonts are simply misnamed internally, or that something went awry when the font designer converted the fonts from one format to another, or something like that.
    I think the simplest solution would be to just re-name the fonts internally. But how? I can't find a way to do it. Even the optimistically-named freeware program "Font Renamer" did not change the internal names.
    Has anyone else ever experienced this problem, and if so, how can it be fixed? Thanks.

    As for free downloads to play with: unfortunately, the FontDiner ones are all commercial and thus not free...
    They do have some free fonts. At the bottom of the first page (after the lead in page), click the "Free Silverware" link at the bottom. The fonts that come up on that page are all free.
    I downloaded four of those fonts at random. All work as expected. That doesn't prove though that the Holiday Ranch font doesn't have something wrong with it.
    Kurt, as I noted above, I already did empty all font cache files and restart. Unfortunately, that did not fix the problem.
    Oops! Sorry, missed that.
    So I think the problem is not that there's anything wrong with my OS, but rather that the person who made the font simply goofed when giving it a name!
    It seems to point that way, but you're seeing the issue across fonts from different vendors. I would believe it's either the OS, or Font Book itself.
    Your tagline shows you're running 10.6.4. Download and reinstall the 10.6.4 Combo updater. It's surprising how many problems go away when applying the combos.

  • Song name won't display in grid view

    I have long had a problem whereby the song-name column was missing when viewing a single album from the grid view. There is an archived, unanswered question on the very same question here: http://discussions.info.apple.com/thread.jspa?threadID=1818126
    I have never as yet found a conclusive answer to this problem, and I've watched several new versions of the software come and go with no fix.
    Well, for the benefit of those still suffering that problem, I'm here to tell you today that I have a conclusive fix!
    For those impatient among you, just do this: http://bit.ly/gf8P0m.
    For everyone else, let me tell you unequivocally that it's NOT (directly) a problem with the software. It basically seems to be down to library corruption of some sort. I know it sounds strange that an entire column could go missing due to data, but I have proven it as follows:
    I created a new test account on my Mac, opened up iTunes and started to import my music from my main account. After a few albums had imported, I cancelled the import and looked at the library - fine. Then, I completely uninstalled iTunes from my main account and reinstalled a fresh copy. This did not solve the problem, but it proved that even with fresh software, the problem persisted and the previous test showed that the software was fine with a fresh user.
    So, next I tried to rebuild my library, and that's what worked. Basically, you need to delete your itunes library xml file and the (compiled?) itunes library file (.itl) BUT DO NOT delete the iTunes Music Library.xml file... this is the key to it all...... you're gonna use that file to import the whole library as a playlist so you're not starting from scratch.
    Here's the instructions from Apple: http://bit.ly/gf8P0m
    Hope this helps anyone that's still stuck with this problem.

    Thanks! I have long had this problem, but before I do this... am I going to lose any data from my music library (ratings, playlists, play counts, custom artwork, etc.) if I follow these steps carefully? I have a large library and it won't be worth having to re-enter/lose a bunch of things just to retrieve this column.

  • I just downloaded LR and uploaded pictures to edit. The pictures display on the bottom carousel, but when I click on a specific image I want to edit, it won't display on the main screen. Why is it doing that?

    Can anyone advise on how to make the picture you select display on the main screen (Loupe view)?

    Might be hardware failure. Take the iPhone to the nearest Apple store
    for evaluation. Make a Genius Bar appointment to avoid delay at the store.
    Make a Genius Bar Reservation
    http://www.apple.com/retail/geniusbar/

Maybe you are looking for

  • Using Mac Mail.. My signature font does not match the entire message..

    Message font size is too big.. Tried both checking and un-checking the "Always match my default message font", had the same problem.. Need help fixing this issue as my emails do not look professional at allllll!!!!

  • Cannot SCAN with Samsung SCX-4500 Printer, New iMac w/Leopard

    I just purchased at an Apple retail store, a brand new 24" iMac along with a Samsung SCX-4500 laser printer, copier and scanner. Bad news is I can't get the scanner function to work. It prints and copies but doesn't scan. I went to Samsung and downlo

  • CS6 not remembering my export settings

    I just updated to CS6 from CS5.5  So far everything seems ok except that CS6 does not remember the format and preset I used to export my projects.  It always comes up as AVI/NTSC DV when I go back to export my project even after I have saved it with

  • Imovie: cant share to facebook due to "wrong password

    when trying to share a movie or a trailer to facebook I am unable to log on to fb due to "incorrect password.  However this is the password !!!

  • ORA-12154 with Oracle 10.2 Client to 9.2.0.3 Database

    I'm having a devil of a time getting connected to a new installation of Oracle 9.2.0.3 on Windows 2003. I have no problems connecting from clients running the 9i client. I have a server using the 10.2 client and it won't talk to the Windows server. I