Unable to play videos with non-ASCII-characters in filename

Hi!
I use a MediaPlayer to display MP4-videos in my application. This works quite well. Unfortunately I have a problem if the filename of the video to be shown contains non-ASCII-charcaters.
I get the following message:
-->file:D:\daten\avi\��� ����.MPG
Error: Unable to realize com.sun.media.amovie.AMController@4b7651
Failed to realizeThe first line shows the filename I pass to the setMediaLocation()-method of the MediaPlayer-object.
What's wrong? If I rename the file to ABC.mpg it works fine.
Thanks for your help
Thomas

Hi!
I use a MediaPlayer to display MP4-videos in my application. This works quite well. Unfortunately I have a problem if the filename of the video to be shown contains non-ASCII-charcaters.
I get the following message:
-->file:D:\daten\avi\��� ����.MPG
Error: Unable to realize com.sun.media.amovie.AMController@4b7651
Failed to realizeThe first line shows the filename I pass to the setMediaLocation()-method of the MediaPlayer-object.
What's wrong? If I rename the file to ABC.mpg it works fine.
Thanks for your help
Thomas

Similar Messages

  • [Solved]Amarok don't play files with non latin1 characters in filename

    I know that this problem is not in amarok, i patched phonon from aur http://aur.archlinux.org/packages.php?ID=27465
    /src/import/gstreamer/mediaobject.cpp
    at line 365 in bool MediaObject::createPipefromURL(const QUrl &url)
    QByteArray encoded_cstr_url = url.toEncoded();
    m_datasource = gst_element_make_from_uri(GST_URI_SRC, encoded_cstr_url.constData(), (const char*)NULL);
    //for utf8 locale replace toLocal8Bit to toAscii
    //toLocalFile fails for files with "?" in filenames. toLocalFile("a?c.s") => "a"
    + if ( url.toString().indexOf("file://") == 0 )
    + g_object_set(m_datasource, "location", url.toString().replace(0,7,"").toLocal8Bit().constData(), NULL);
    if (!m_datasource)
    return false;
    and now amarok plays ALL files
    Last edited by klama (2009-08-03 12:23:16)

    which phonon backend are you using? try with a different one

  • Problems with non-ASCII characters on Linux Unit Test Import

    I found a problem with non-ASCII characters in the Unit Test Import for Linux.  This problem does not appear in the Unit Test Import for Windows.
    I have attached a Unit Test export called PROC1.XML  It tests a procedure that is included in another attachment called PROC1.txt. The unit test includes 2 implementations.  Both implementations pass non-ASCII characters to the procedure and return them unchanged.
    In Linux, the unit test import will change the non-ASCII characters in the XML file to xFFFD. If I copy/paste the the non-ASCII characters into the Unit Test after the import, they will be stored and executed correctly.
    Amazon Ubuntu 3.13.0-45-generic / lubuntu-core
    Oracle 11g Express Edition - AL32UTF8
    SQL*Developer 4.0.3.16 Build MAIN-16.84
    Java(TM) SE Runtime Environment (build 1.7.0_76-b13)
    Java HotSpot(TM) 64-Bit Server VM (build 24.76-b04, mixed mode)
    In Windows, the unit test will import the non-ASCII characters unchanged from the XML file.
    Windows 7 Home Premium, Service Pack 1
    Oracle 11g Express Edition - AL32UTF8
    SQL*Developer 4.0.3.16 Build MAIN-16.84
    Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
    Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)
    If SQL*Developer is coded the same between Windows and Linux, The JVM must be causing the problem.

    Set the System property "mail.mime.decodeparameters" to "true" to enable the RFC 2231 support.
    See the javadocs for the javax.mail.internet package for the list of properties.
    Yes, the FAQ entry should contain those details as well.

  • Filling clob with non ascii characters

    Hello,
    I have had some problems with clobs and usage of german
    umlauts (����). I was'nt able to insert or update
    strings containing umlaute in combination with string
    binding. After inserting or updating the umlaut
    characters were replaced by strange (spanish) '?'
    which were upside down.
    However, it was working when I did not use string bindung.
    I tried varios things, after some time I tracked
    the problem down to to oracle.toplink.queryframework.SQLCall.java. In the
    prepareStatement(...) you find something
    like
    ByteArrayInputStream inputStream = new ByteArrayInputStream(((String) parameter).getBytes());
    // Binding starts with a 1 not 0.
    statement.setAsciiStream(index + 1, inputStream,((String) parameter).getBytes().length);
    I replaced the usage of ByteArrayInputStram with CharArrayReader:
    // TH changed, 26.11.2003, Umlaut will not work with this.
    CharArrayReader reader = new CharArrayReader(((String) parameter).toCharArray());     
    statement.setCharacterStream(index + 1, reader, ((String) parameter).length() );
    and this worked.
    Is there any other way achieving this? Did anyone
    get clobs with non ascii characters to work?
    Regards -- Tobias
    (Toplink 9.0.3, Clob was mapped to String, Driver was Oracle OCI)

    I don't think the console font is the problem. I use Lat2-Terminus16 because I read the Beginner's Guide on the wiki while installing the system.
    My /etc/vconsole.conf:
    KEYMAP=de
    FONT=Lat2-Terminus16
    showconsolefont even shows me the characters missing in the file names; e.g.: Ö, Ä, Ü

  • Cannot rename file with non-ASCII characters when using the

    My application moves files from one directory to another by calling File[] srcFiles = srcDir.listFiles() to get a list of files in the source directory, and then calling srcFiles.renameTo(destFile) to rename each file.
    This does not work (renameTo returns false and the file is not moved) under the following circumstances:
    - the file's leaf name contains non-ASCII characters, for example "�"
    - the OS is Solaris 9
    - the LANG and LC_* environment variables are unset, i.e. the C locale is being used
    If I set the LANG environment variable to, for example, en_GB.UTF-8 then the rename succeeds.
    I have tried calling srcFiles[index].getName().getBytes("UTF-8") and the non-ASCII characters are being replaced with ? (0x3f) characters when LANG is unset.
    Is this a bug in the JRE? I would argue that since my code does not actually manipulate the filename (I just use the File object that File.listFiles() gives me) then the rename should succeed. Of course I would not expect the file name to be displayed correctly if I printed it out.
    I have reproduced this behaviour with JDK 1.4.2_05 and 1.5.0_04 on Solaris 9.
    Francis

    Thanks for the info Alan.
    I considered setting the locale in the environment (this sounds like the "correct" fix to me and we might implement it later), but this application shares a WebLogic server with many other applications so we would have to do a huge amount of testing to make sure that the locale change wouldn't break the other apps. In the end I worked around the problem by making the code that generates the filenames in the first place strip out any non-ASCII characters (the names of the files are not critically important).
    Looking forward to JSR-203, in the meantime perhaps a note about this behaviour in the java.io.File javadoc would be useful.

  • Can't get the attachment filename out of a Part (with non ascii characters)

    Hello, all and happy new year :)
    My issue is with non ascii filename in attachments... Yes i've read the FAQ : http://www.oracle.com/technetwork/java/faq-135477.html#encodefilename
    I can't get the filename out of the BodyPart for those kind of attachments
    here's my unit test :
         * contains various parts from various mailer encoded in different ways...
         private enum EncodedFileNamePart{
              OUTLOOK("Content-Type: text/plain;\n name=\"=?iso-8859-1?Q?c'estd=E9j=E0no=EBl=E7ac'estcool.txt?=\" \nContent-Transfer-Encoding: 7bit\nContent-Disposition: attachment;\n filename=\"=?iso-8859-1?Q?c'estd=E9j=E0no=EBl=E7ac'estcool.txt?=\" \n\nnoel 2010\n","c'estdéjànoëlçac'estcool.txt"),
              GMAIL("Content-Type: text/plain; charset=US-ASCII; name=\"=?ISO-8859-1?B?ZOlq4G5v62znYWNlc3Rjb29sLnR4dA==?=\"\nContent-Disposition: attachment; filename=\"=?ISO-8859-1?B?ZOlq4G5v62znYWNlc3Rjb29sLnR4dA==?=\"\nContent-Transfer-Encoding: base64\nX-Attachment-Id: f_giityr5r0\n\namluZ2xlIGJlbGxzIQo=\n","déjànoëlçacestcool.txt"),
              THUNDERBIRD("Content-Type: text/plain;\n name=\"=?ISO-8859-1?Q?d=E9j=E0no=EBl=E7acestcool=2Etxt?=\"\nContent-Transfer-Encoding: 7bit\nContent-Disposition: attachment;\n filename*0*=ISO-8859-1''%64%E9%6A%E0%6E%6F%EB%6C%E7%61%63%65%73%74%63%6F;\n filename*1*=%6F%6C%2E%74%78%74\n\njingle bells!\n","déjànoëlçacestcool.txt"),
              EVOLUTION("Content-Disposition: attachment; filename*=ISO-8859-1''d%E9j%E0no%EBl.txt\nContent-Type: text/plain; name*=ISO-8859-1''d%E9j%E0no%EBl.txt; charset=\"UTF-8\" \nContent-Transfer-Encoding: 7bit\n\njingle bells\n","déjànoël.txt"),
              String content=null;
              String target=null;
              private EncodedFileNamePart(String content,String target){
                   this.content=content;
                   this.target=target;
              public Part get(){
                   try{
                   ByteArrayInputStream bis = new ByteArrayInputStream(this.content.getBytes());
                   Part part = new MimeBodyPart(bis);
                   bis.close();
                   return part;
                   catch(Throwable e){
                        return null;
              public String getTarget(){
                   return this.target;
         @Test
         public void testJavamailDecode() throws MessagingException, UnsupportedEncodingException{
              System.setProperty("mail.mime.encodefilename", "true");
              System.setProperty("mail.mime.decodefilename", "true");
              for(EncodedFileNamePart part : EncodedFileNamePart.values())
                   assertEquals(part.name(),MimeUtility.decodeText(part.get().getFileName()),part.getTarget());     
    I take a NullPointerExcepion in the decodeText because getFileName() return null for the EVOLUTION case, and work well with OUTLOOK, THUNDERBIRD and GMAIL.
    Evolution's content type is "Content-Disposition: attachment; filename*=ISO-8859-1''d%E9j%E0no%EBl.txt" wich doesn't look like the other (looks like the RFC 2616 or RFC5987 to do it.)
    How can i handle this situation except by writting my own decoder?
    Thanks for your answers!
    Edited by: user13619058 on 4 janv. 2011 07:44

    Set the System property "mail.mime.decodeparameters" to "true" to enable the RFC 2231 support.
    See the javadocs for the javax.mail.internet package for the list of properties.
    Yes, the FAQ entry should contain those details as well.

  • Problem with non-ASCII characters on TTY

    Although I'm not a native speaker, I want my system language to be English (US), since that's what I'm used to. However I have a lot of files which have German language in their file names.
    My /etc/locale.conf has en_US.UTF-8 and de_DE.UTF-8 enabled. My /etc/locale.conf contains only the line
    LANG=en_US.UTF-8
    The German file names show up fine within Dolphin and Konsole (ls -a). But they look weird on either of the TTYs (the "console" you get to by pressing e.g. ctrl+alt+F1). They have other characters like '>>' or the paragraph symbol where non-ASCII characters should be. Is it possible to fix this?

    I don't think the console font is the problem. I use Lat2-Terminus16 because I read the Beginner's Guide on the wiki while installing the system.
    My /etc/vconsole.conf:
    KEYMAP=de
    FONT=Lat2-Terminus16
    showconsolefont even shows me the characters missing in the file names; e.g.: Ö, Ä, Ü

  • Publishing pages with non-ASCII characters to folder

    There is a weirdness/anachronism in exported file names from iWeb'08.
    I have a page "Mökin katto" (that is Finnish).
    "ls" in Terminal shows the exported folder ok, like
    Mökin_katto.html
    Mökinkattofiles/
    Tarring and uploading to show on my Apache web server did not work so good, though. I changed the server to operate in UTF-8 locale and also use UTF-8 as the default character set. Still no success. At this point, I wanted to check the exported folder in the source (my MacBook). Tab completion didn't work:
    % Mö<TAB>
    didn't give any results. At this point, I wrote a simple Python script to dump the filenames. I created pages with different Scandinavian characters and capitalizations to demonstrate (I have cleaned the output a bit to remove unnecessary filenames):
    % ls
    MäkiÄn_katto.html MökiÖn_katto.html feed.xml
    MäkiÄnkattofiles/ MökiÖnkattofiles/ index.html
    MåkiÅn_katto.html Mökin_katto.html
    MåkiÅnkattofiles/ Mökinkattofiles/
    % ~/repos/scripts/misc/dirdump.py
    MäkiÄn_katto.html 'M(4d)' 'a(61)' cc88 'k(6b)' 'i(69)' 'A(41)'cc 88 'n(6e)' '_(5f)' 'k(6b)' 'a(61)' 't(74)' 't(74)' 'o(6f)' '.(2e)' 'h(68)' 't(74)' 'm(6d)' 'l(6c)'
    MäkiÄnkattofiles 'M(4d)' 'a(61)' cc88 'k(6b)' 'i(69)' 'A(41)'cc 88 'n(6e)' '_(5f)' 'k(6b)' 'a(61)' 't(74)' 't(74)' 'o(6f)' '_(5f)' 'f(66)' 'i(69)' 'l(6c)' 'e(65)' 's(73)'
    MåkiÅn_katto.html 'M(4d)' 'a(61)' cc8a 'k(6b)' 'i(69)' 'A(41)'cc 8a 'n(6e)' '_(5f)' 'k(6b)' 'a(61)' 't(74)' 't(74)' 'o(6f)' '.(2e)' 'h(68)' 't(74)' 'm(6d)' 'l(6c)'
    MåkiÅnkattofiles 'M(4d)' 'a(61)' cc8a 'k(6b)' 'i(69)' 'A(41)'cc 8a 'n(6e)' '_(5f)' 'k(6b)' 'a(61)' 't(74)' 't(74)' 'o(6f)' '_(5f)' 'f(66)' 'i(69)' 'l(6c)' 'e(65)' 's(73)'
    Media 'M(4d)' 'e(65)' 'd(64)' 'i(69)' 'a(61)'
    Mökin_katto.html 'M(4d)' 'o(6f)' cc88 'k(6b)' 'i(69)' 'n(6e)' '_(5f)' 'k(6b)' 'a(61)' 't(74)' 't(74)' 'o(6f)' '.(2e)' 'h(68)' 't(74)' 'm(6d)' 'l(6c)'
    Mökinkattofiles 'M(4d)' 'o(6f)' cc88 'k(6b)' 'i(69)' 'n(6e)' '_(5f)' 'k(6b)' 'a(61)' 't(74)' 't(74)' 'o(6f)' '_(5f)' 'f(66)' 'i(69)' 'l(6c)' 'e(65)' 's(73)'
    MökiÖn_katto.html 'M(4d)' 'o(6f)' cc88 'k(6b)' 'i(69)' 'O(4f)'cc 88 'n(6e)' '_(5f)' 'k(6b)' 'a(61)' 't(74)' 't(74)' 'o(6f)' '.(2e)' 'h(68)' 't(74)' 'm(6d)' 'l(6c)'
    MökiÖnkattofiles 'M(4d)' 'o(6f)' cc88 'k(6b)' 'i(69)' 'O(4f)'cc 88 'n(6e)' '_(5f)' 'k(6b)' 'a(61)' 't(74)' 't(74)' 'o(6f)' '_(5f)' 'f(66)' 'i(69)' 'l(6c)' 'e(65)' 's(73)'
    Scripts 'S(53)' 'c(63)' 'r(72)' 'i(69)' 'p(70)' 't(74)' 's(73)'
    Apparently Ö and ö are translated to the sequences '"O" 0xcc 0x88' and '"o" 0xcc 0x88', Ä and ä to '"A" 0xcc 0x88' and '"a" 0xcc 0x88' and finally Å and å to the sequences '"A" 0xcc 0x8a' and '"a" 0xcc 0x8a'. Looking into this a bit more, those ("0xcc 0x88" and "0xcc 0x8a") are the UTF-8 encodings of COMBINING DIAERESIS (U+308) (http://www.fileformat.info/info/unicode/char/0308/index.htm) and COMBINING RING ABOVE (U+030A) (http://www.fileformat.info/info/unicode/char/030a/index.htm).
    The generated links in the pages are in the short (Latin1 equivalent) form, but the filenames are in this format. The meaning of the strings is the same, but e.g. Apache doesn't internally canonicalize the paths, which results in broken URLs. I think iWeb should export the filenames and the URLs in identical UTF-8 strings (which quite likely should be the Latin1-equivalent Unicode code points). Especially as e.g. Terminal and bash only work with the short forms.
    Is there an option to make iWeb behave this way?

    I tried checking whether changing my keyboard layout (I've created the current one with Ukelele) to one which wrote decomposed characters changed things; it didn't. The filenames and generated html-files contained identical entries; I could use tab-completion for the generated filenames, though. (Bash was otherwise a bit confused about the change, so I can't recommend this)
    By canonicalizing the filenames with a script on the server (a Debian GNU/Linux system) end I can now make it work; the root cause of the discrefence between the file name and the URLs in the generated HTML is still a mystery. This would've worked if iWeb wrote decomposed UTF-8 characters to the URLs, also.

  • Difficulties retrieving documents with non ascii characters in name

    Hello
    I have a very simple container with only one document in it: *<ação nome="ação"/>*
    When using the dbxml shell to retrieve it, no problem:
    dbxml> open teste.dbxml
    dbxml> get "ação"
    1 documents found
    dbxml> print
    <?xml version="1.0" encoding="UTF-8"?>
    <ação nome="ação"/>
    (The strange characters appear because my terminal uses Latin1 encoding.)
    But I cannot retrieve the document with a very simple Java program (left out basic environment setup for clarity - I will put the full code in a follow-up post):
    String name = new String("ação"); +// will cause: com.sleepycat.dbxml.XmlException: Error: Document not found: ação, errcode = DOCUMENT_NOT_FOUND+
    // String name = new String("ação".getBytes(), utf8); +// will cause: com.sleepycat.dbxml.XmlException: Error: Document not found: ação, errcode = DOCUMENT_NOT_FOUND+
    String name = new String("ação".getBytes(), latin1); +// will cause: com.sleepycat.dbxml.XmlException: Error: Document not found: ação, errcode = DOCUMENT_NOT_FOUND+
    XmlDocument doc = container.getDocument(tx, name);
    Almost certainly this problem has to do something with the encoding of the name, but I cannot see why.
    Thank you very much for looking into this,
    Greetings,
    Koen

    As promised, the full Java code of this basic program:
    package info.carrapateira;
    import com.sleepycat.dbxml.*;
    import com.sleepycat.db.*;
    import java.io.*;
    import java.nio.charset.*;
    public class DbxmlTest2 {
         static Charset utf8 = Charset.forName("UTF-8");
         static Charset latin1 = Charset.forName("ISO-8859-1");
         public static void main(String[] args) {
              EnvironmentConfig envCfg = new EnvironmentConfig();
              envCfg.setAllowCreate(true);
              envCfg.setInitializeCache(true);
              envCfg.setInitializeLocking(true);
              envCfg.setInitializeLogging(true);
              envCfg.setRunRecovery(true);
              envCfg.setTransactional(true);
              Environment env = null;
              XmlManager manager = null;
              XmlContainer container = null;
              XmlTransaction tx = null;
              try {
                   env = new Environment(new File(args[0]), envCfg);
                   XmlManagerConfig cfg = new XmlManagerConfig();
                   cfg.setAdoptEnvironment(true);
                   manager = new XmlManager(env, cfg);
                   XmlContainerConfig ctCfg = new XmlContainerConfig();
                   ctCfg.setTransactional(true);
                   container = manager.openContainer("teste.dbxml", ctCfg);
                   tx = manager.createTransaction();
                   String name = new String("ação"); // com.sleepycat.dbxml.XmlException: Error: Document not found: ação, errcode = DOCUMENT_NOT_FOUND
                   // String name = new String("ação".getBytes(), utf8); // com.sleepycat.dbxml.XmlException: Error: Document not found: ação, errcode = DOCUMENT_NOT_FOUND
                   //String name = new String("ação".getBytes(), latin1); // com.sleepycat.dbxml.XmlException: Error: Document not found: ação, errcode = DOCUMENT_NOT_FOUND
                   XmlDocument doc = container.getDocument(tx, name);
                   tx.commit();
              } catch (Exception e) {
                   e.printStackTrace();
                   try {
                        tx.abort();
                   } catch (Exception e1) {
                        e1.printStackTrace();
              } finally {
                   try {
                        container.close();
                        manager.close();
                   } catch (Exception e) {
                        e.printStackTrace();
    }

  • Replacing non-ASCII characters with HTML charcter references

    Hi All,
    In Oracle 10g or greater is there a built-in function that will convert a string with non-ASCII characters like this
    a b č 뮼
    into an ASCII string with HTML character references like this?
    a b & # x 0 1 0 D ; & # x B B B C ;
    (note I had to include spaces between each character in the sample code for message to prevent the forum software from converting my text)
    I tried using
    utl_i18n.escape_reference( val, 'us7ascii' )
    but for some reason it returns
    a b c & # x B B B C ;
    Note how it converted the Western European character "č" to its unaccented counterpart "c", not "& # x 0 1 0 D ;" (is this a bug?).
    I also tried a custom solution using regexp_replace and asciistr (which I can't include here because the forum software chokes on it) but it only returns the correct result for values <=4000 characters long. Unfortunately asciistr doesn't appear to accept CLOB values larger than 4000 characters. It returns an error message like
    (ORA-22835: Buffer too small for CLOB to CHAR or BLOB to RAW conversion (actual: 30251, maximum: 4000) ).
    I'm looking for a solution that works on CLOB data of any size.
    Thanks in advance for any insight you can provide.
    Joe Fuda

    So with that (UTF8) in mind, let's take another look.....
    As shown below, I used a AL32UTF8 database.
    Note: I did not use a unicode capable tool for querying. So I set console mode code page to 1250 just to have č displayed properly (instead of posing as an è).
    Also, as a result of using windows-1250 for client character set, in the val column and in the second select's ncr column (iso8859-1), è (00e8) has been replaced with e through character set conversion going from server back to client.
    Running the same code on a database with a db character set such as we8mswin1252, that doesn't define the č (latin small c with caron) character, would yield results with a c in the ncr column.
    C:\>chcp 1250
    Aktuell teckentabell: 1250
    C:\>set nls_lang=.ee8mswin1250
    C:\>sqlplus test/test
    SQL*Plus: Release 11.1.0.6.0 - Production on Fri May 23 21:25:29 2008
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
    With the OLAP option
    SQL> select * from nls_database_parameters where parameter like '%CHARACTERSET';
    PARAMETER              VALUE
    NLS_CHARACTERSET       AL32UTF8
    NLS_NCHAR_CHARACTERSET AL16UTF16
    SQL> select unistr('\010d \00e8') val, utl_i18n.escape_reference(unistr('\010d \00e8'),'us7ascii') NCR from dual;
    VAL  NCR
    č e  c e
    SQL> select unistr('\010d \00e8') val, utl_i18n.escape_reference(unistr('\010d \00e8'),'we8iso8859p1') NCR from dual;
    VAL  NCR
    č e  &# x10d; e     <- "è"
    SQL> select unistr('\010d \00e8') val, utl_i18n.escape_reference(unistr('\010d \00e8'),'ee8iso8859p2') NCR from dual;
    VAL  NCR
    č e  č &# xe8;
    SQL> select unistr('\010d \00e8') val, utl_i18n.escape_reference(unistr('\010d \00e8'),'cl8iso8859p5') NCR from dual;
    VAL  NCR
    č e  &# x10d; &# xe8;In the US7ASCII case, where it should be possible for all non-ascii characters to be escaped, it seems as if the actual escape step is skipped over.
    Hope this helps to understand whether utl_i8n is usable or not in your case.
    Message was edited by:
    orafad
    Fixed replaced character references :)

  • Cannot login with password containing non-ascii characters

    Hello,
    I have web application, form based login. UTF-8 is specified "everywhere".
    And it works, except for passwords.
    If user register itself with password containing non-ascii characters, it is correctly written in database, but when doing either programmatic login or normal form based login, if fails.
    If the password is only ascii, it works.
    Username of login could be ascii or non-ascii, it doesn't matter, both works.
    I'm using sun java application server 9.1.
    jdbc realm.
    I'm not using hashing passwords, just clean (now)
    I tried configure realm Charset: UTF8 as last chance, but it doesn't work either.
    The problem is only with non-ascii characters in password.
    Any help very appreciated
    Thanks a lot

    hi,
    I know all that, but that's not the case. My app uses preparedStatements, everything is properly configured, in all pages, utf-8 is going from user to db and back without any problems.
    The only problem is with password field. As I am using form based login, with jdbc realm configured (again, nicely working when only ascii characters), I have very little chance to do something bad through the login phase.
    I'm not talking about special characters, I'm talking about non-ascii characters, let's say - Chinese, arabish, Russian alphabet etc.
    When user registers (my code), the fields are properly written to db. I have checked that, trust me.
    But the Sun app server realm seems to have some problems with the password field.
    (realm uses jdbc connection to mysql, the url contains all extra parameters to be sure about utf8. there is nothing more what can be configured...)
    If I try other alphabet codes in login and ascii in password, it works. But soon, as I use other alphabet code also in password, it doesn't work anymore.
    My only idea is, that I could try MD5 to create ascii only characters (I hope it works that way) on the client with javascript and then set Digest to MD5 in realm configuration. But still, it seems very strange. The clear way storage should also function? (now set Digest to 'none')
    Is it a bug of Sun App Server?
    thanks

  • Inserting non-ascii characters to ORACLE using SQLPLUS

    Hi
    I'm using Oracle 10.2.
    I would like to insert data with non-ascii characters, like éñ etc.
    For example:
    INSERT INTO FOO(NAME) VALUES ('abcñ');
    The problem is this - when I use SQLDeveloper with this query - there's no problem. However when I use SQLPLUS - I see the ñ character messed up.
    Most environments use some kind of escaping mechanism (like the \uXXXX in JAVA or %XX in URL escaping), but I simply can't find how to do so in SQLPLUS.
    Can somebody help please?

    Are you using "char" or "nchar" character datatypes? Make sure that the database character set defines the language script you need to support (see nls_database_parameters).

  • SMplayer & VLC cant play video with vaapi

    My GPU is Intel HD 3000, so I installed the packages libva-driver-intel smplayer mplayer-vaapi vlc, the vainfo is:
    libva info: VA-API version 0.36.0
    libva info: va_getDriverName() returns 0
    libva info: Trying to open /usr/lib/dri/i965_drv_video.so
    libva info: Found init function __vaDriverInit_0_36
    libva info: va_openDriver() returns 0
    vainfo: VA-API version: 0.36 (libva 1.4.1)
    vainfo: Driver version: Intel i965 driver for Intel(R) Sandybridge Mobile - 1.4.1
    vainfo: Supported profile and entrypoints
    VAProfileMPEG2Simple : VAEntrypointVLD
    VAProfileMPEG2Main : VAEntrypointVLD
    VAProfileH264ConstrainedBaseline: VAEntrypointVLD
    VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
    VAProfileH264Main : VAEntrypointVLD
    VAProfileH264Main : VAEntrypointEncSlice
    VAProfileH264High : VAEntrypointVLD
    VAProfileH264High : VAEntrypointEncSlice
    VAProfileH264StereoHigh : VAEntrypointVLD
    VAProfileVC1Simple : VAEntrypointVLD
    VAProfileVC1Main : VAEntrypointVLD
    VAProfileVC1Advanced : VAEntrypointVLD
    VAProfileNone : VAEntrypointVideoProc
    I choose the vaapi as the video output driver for both smplayer & vlc, but both of them cant play video with hw accerleration, the smplayer can play video but cpu usage is high, the log is
    /usr/bin/mplayer -noquiet -nofs -nomouseinput -sub-fuzziness 1 -identify -slave -vo vaapi -ao alsa -nokeepaspect -nodr -double -input nodefault-bindings:conf=/dev/null -wid 37748771 -monitorpixelaspect 1 -noass -font 文泉驿微米黑 -subfont-autoscale 1 -subfont-text-scale 5 -subcp enca:zh:CP936 -subpos 100 -volume 50 -cache 2048 -osdlevel 0 -vf-add expand=osd=1 -vf-add screenshot -noslices -channels 2 -af scaletempo,equalizer=0:0:0:0:0:0:0:0:0:0 -softvol -softvol-max 110 /mnt/video/TV_Series/手机/[手机].Cell.Phone.E01.720p.HDTV.x264-NGB.mkv
    MPlayer SVN-r36265-4.9.2 (C) 2000-2013 MPlayer Team
    Cannot test OS support for SSE, disabling to be safe.
    203 audio & 423 video codecs
    mplayer: could not connect to socket
    mplayer: No such file or directory
    Failed to open LIRC support. You will not be able to use your remote control.
    Terminal type `unknown' is not defined.
    Playing /mnt/video/TV_Series/手机/[手机].Cell.Phone.E01.720p.HDTV.x264-NGB.mkv.
    Cache fill: 0.00% (0 bytes)
    Cache fill: 0.00% (0 bytes)
    Cache fill: 0.00% (0 bytes)
    Cache fill: 0.00% (0 bytes)
    Cache fill: 0.00% (0 bytes)
    Cache fill: 0.00% (0 bytes)
    Cache fill: 0.00% (0 bytes)
    Cache fill: 0.00% (0 bytes)
    Cache fill: 0.00% (0 bytes)
    Cache fill: 0.00% (0 bytes)
    Cache fill: 0.00% (0 bytes)
    Cache fill: 0.00% (0 bytes)
    Cache fill: 0.00% (0 bytes)
    Cache fill: 0.00% (0 bytes)
    Cache fill: 0.00% (0 bytes)
    Cache fill: 0.00% (0 bytes)
    Cache fill: 0.00% (0 bytes)
    Cache fill: 0.00% (0 bytes)
    Cache fill: 0.00% (0 bytes)
    Cache fill: 0.00% (0 bytes)
    Cache fill: 0.00% (0 bytes)
    Cache fill: 0.00% (0 bytes)
    Cache fill: 0.00% (0 bytes)
    Cache fill: 0.00% (0 bytes)
    Cache fill: 0.00% (0 bytes)
    Cache fill: 0.00% (0 bytes)
    Cache fill: 18.75% (393216 bytes)
    libavformat version 55.12.102 (internal)
    libavformat file format detected.
    ID_VIDEO_ID=0
    [lavf] stream 0: video (h264), -vid 0
    ID_AUDIO_ID=0
    [lavf] stream 1: audio (ac3), -aid 0
    VIDEO: [H264] 1280x720 0bpp 25.000 fps 0.0 kbps ( 0.0 kbyte/s)
    Clip info:
    creation_time: 2010-05-10 20:00:25
    ID_CLIP_INFO_NAME0=creation_time
    ID_CLIP_INFO_VALUE0=2010-05-10 20:00:25
    ID_CLIP_INFO_N=1
    Load subtitles in /mnt/video/TV_Series/手机/
    ID_FILENAME=/mnt/video/TV_Series/手机/[手机].Cell.Phone.E01.720p.HDTV.x264-NGB.mkv
    ID_DEMUXER=lavfpref
    ID_VIDEO_FORMAT=H264
    ID_VIDEO_BITRATE=0
    ID_VIDEO_WIDTH=1280
    ID_VIDEO_HEIGHT=720
    ID_VIDEO_FPS=25.000
    ID_VIDEO_ASPECT=1.7778
    ID_AUDIO_FORMAT=8192
    ID_AUDIO_BITRATE=448000
    ID_AUDIO_RATE=48000
    ID_AUDIO_NCH=2
    ID_START_TIME=0.00
    ID_LENGTH=2493.86
    ID_SEEKABLE=1
    ID_CHAPTERS=0
    libva info: VA-API version 0.36.0
    libva info: va_getDriverName() returns 0
    libva info: Trying to open /usr/lib/dri/i965_drv_video.so
    libva info: Found init function __vaDriverInit_0_36
    libva info: va_openDriver() returns 0
    Opening video filter: [screenshot]
    Opening video filter: [expand osd=1]
    Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
    ==========================================================================
    Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
    libavcodec version 55.18.102 (internal)
    Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
    ==========================================================================
    ID_VIDEO_CODEC=ffh264
    ==========================================================================
    Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
    AUDIO: 48000 Hz, 2 ch, floatle, 448.0 kbit/14.58% (ratio: 56000->384000)
    ID_AUDIO_BITRATE=448000
    ID_AUDIO_RATE=48000
    ID_AUDIO_NCH=2
    Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
    ==========================================================================
    AO: [alsa] 48000Hz 2ch floatle (4 bytes per sample)
    ID_AUDIO_CODEC=ffac3
    [Mixer] No hardware mixing, inserting volume filter.
    Starting playback...
    [VD_FFMPEG] Trying pixfmt=0.
    [VD_FFMPEG] XVMC-accelerated MPEG-2.
    The selected video_out device is incompatible with this codec.
    Try appending the scale filter to your filter list,
    e.g. -vf spp,scale instead of -vf spp.
    [VD_FFMPEG] Trying pixfmt=1.
    Movie-Aspect is undefined - no prescaling applied.
    [swscaler @ 0xb75c9240]using unscaled yuv420p -> rgb24 special converter
    VO: [vaapi] 1280x720 => 1280x720 Planar YV12
    [VD_FFMPEG] Trying pixfmt=0.
    [VD_FFMPEG] XVMC-accelerated MPEG-2.
    The selected video_out device is incompatible with this codec.
    Try appending the scale filter to your filter list,
    e.g. -vf spp,scale instead of -vf spp.
    [VD_FFMPEG] Trying pixfmt=1.
    Movie-Aspect is undefined - no prescaling applied.
    VO: [vaapi] 1280x720 => 1280x720 Planar YV12
    Full DR not possible, trying SLICES instead!
    [VD_FFMPEG] DRI failure.
    ID_VIDEO_TRACK=0
    ID_AUDIO_TRACK=0
    and vlc will crash(Segmentation fault (core dumped)) when stop playing the video, the console output is
    [jsntyyl@localhost 2 Broke Girls]$ vlc -v 2.Broke.Girls.S04E01.720p.HDTV.X264-DIMENSION.mkv
    VLC media player 2.1.5 Rincewind (revision 2.1.4-49-gdab6cb5)
    [0x9fbb8f8] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/access/libdv1394_plugin.so' (libavc1394.so.0: cannot open shared object file: No such file or directory)
    [0x9fbb8f8] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/access/libaccess_gnomevfs_plugin.so' (libgnomevfs-2.so.0: cannot open shared object file: No such file or directory)
    [0x9fbb8f8] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/access/libvcdx_plugin.so' (libvcdinfo.so.0: cannot open shared object file: No such file or directory)
    [0x9fbb8f8] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/access/libdc1394_plugin.so' (libdc1394.so.22: cannot open shared object file: No such file or directory)
    [0x9fbb8f8] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/visualization/libgoom_plugin.so' (libgoom2.so.0: cannot open shared object file: No such file or directory)
    [0x9fbb8f8] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/visualization/libprojectm_plugin.so' (libprojectM.so.2: cannot open shared object file: No such file or directory)
    [0x9fbb8f8] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/demux/libgme_plugin.so' (libgme.so.0: cannot open shared object file: No such file or directory)
    [0x9fbb8f8] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/codec/libtwolame_plugin.so' (libtwolame.so.0: cannot open shared object file: No such file or directory)
    [0x9fbb8f8] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
    [0xac802d00] mkv demux warning: MKV/Ebml Parser: m_el[mi_level] == NULL
    [0xac802d00] mkv demux warning: MKV/Ebml Parser: Up cannot escape itself
    [0xaca00508] main input error: Invalid PCR value in ES_OUT_SET_(GROUP_)PCR !
    libva info: VA-API version 0.36.0
    libva info: va_getDriverName() returns 0
    libva info: Trying to open /usr/lib/dri/i965_drv_video.so
    No accelerated IMDCT transform found
    libva info: Found init function __vaDriverInit_0_36
    libva info: va_openDriver() returns 0
    [0xac86e6c0] avcodec decoder: Using VA API version 0.36 for hardware decoding.
    libva info: VA-API version 0.36.0
    libva info: va_getDriverName() returns 0
    libva info: Trying to open /usr/lib/dri/i965_drv_video.so
    libva info: Found init function __vaDriverInit_0_36
    libva info: va_openDriver() returns 0
    [0xac86e6c0] avcodec decoder: Using VA API version 0.36 for hardware decoding.
    Fontconfig warning: FcPattern object size does not accept value "0"
    Fontconfig warning: FcPattern object size does not accept value "0"
    Fontconfig warning: FcPattern object size does not accept value "0"
    Fontconfig warning: FcPattern object size does not accept value "0"
    [0xb200ff18] main vout display error: Failed to resize display
    [0xa041278] pulse audio output warning: starting late (-31910 us)
    [ass] Neither PlayResX nor PlayResY defined. Assuming 384x288
    [0xb07008d0] access_http access error: error: HTTP/1.1 403 Forbidden
    [0xb07008d0] access_http access error: error: HTTP/1.1 403 Forbidden
    [0xb07008d0] access_mms access error: error: HTTP/1.1 400 Invalid Request
    [0xb07004d8] main demux meta error: no suitable access module for `http://services.tvrage.com/feeds/search.php?show=2 Broke Girls'
    [ass] fontconfig: cannot find font '方正黑体_GBK', falling back to 'DejaVu Sans Bold'
    [ass] fontconfig: cannot find font '方正综艺_GBK', falling back to 'DejaVu Sans Bold'
    [ass] fontconfig: cannot find font '方正综艺_GBK', falling back to 'DejaVu Sans'
    [ass] Glyph 0x6536 not found, selecting one more font for (方正黑体_GBK, 200, 0)
    [ass] fontconfig: cannot find glyph U+6536 in font '方正黑体_GBK', falling back to 'WenQuanYi Micro Hei'
    [0xa6b7b440] main video output warning: picture is too late to be displayed (missing 49 ms)
    [0xa041278] main audio output warning: buffer too late (-356847 us): dropped
    [0xa041278] main audio output warning: buffer too late (-325063 us): dropped
    [0xaca00508] main input error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 1000 ms)
    [0xaca00508] main input error: ES_OUT_RESET_PCR called
    [0xa041278] main audio output warning: buffer too late (-293194 us): dropped
    [0xa041278] main audio output warning: buffer too late (-262756 us): dropped
    [0xa041278] main audio output warning: buffer too late (-230913 us): dropped
    [0xa041278] main audio output warning: buffer too late (-199057 us): dropped
    [0xa041278] main audio output warning: buffer too late (-167188 us): dropped
    [0xa041278] main audio output warning: buffer too late (-135319 us): dropped
    [0xac86e6c0] main decoder warning: early picture skipped
    libva info: VA-API version 0.36.0
    libva info: va_getDriverName() returns 0
    libva info: Trying to open /usr/lib/dri/i965_drv_video.so
    libva info: Found init function __vaDriverInit_0_36
    libva info: va_openDriver() returns 0
    [0xac86e6c0] avcodec decoder: Using VA API version 0.36 for hardware decoding.
    WARNING: Invalid RefPicListX[] entry!!! It is not included in DPB
    [0xa041278] main audio output warning: playback way too early (-493947): playing silence
    [0xa6b7b440] main video output warning: picture is too late to be displayed (missing 89 ms)
    [0xac86e6c0] main decoder warning: can't get output picture
    Segmentation fault (core dumped)
    the very strange thing is that I can play the video with hw accerleration when I start mplayer in the console with cmd mplayer -vo vaapi video_file, the console output of mplayer is
    [jsntyyl@localhost 2 Broke Girls]$ mplayer -vo vaapi 2.Broke.Girls.S04E01.720p.HDTV.X264-DIMENSION.mkv
    MPlayer SVN-r36265-4.9.2 (C) 2000-2013 MPlayer Team
    Cannot test OS support for SSE, disabling to be safe.
    203 audio & 423 video codecs
    mplayer: could not connect to socket
    mplayer: No such file or directory
    Failed to open LIRC support. You will not be able to use your remote control.
    Playing 2.Broke.Girls.S04E01.720p.HDTV.X264-DIMENSION.mkv.
    libavformat version 55.12.102 (internal)
    libavformat file format detected.
    [lavf] stream 0: video (h264), -vid 0
    [lavf] stream 1: audio (ac3), -aid 0
    VIDEO: [H264] 1280x720 0bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
    Clip info:
    creation_time: 2014-10-27 15:19:40
    Load subtitles in ./
    libva info: VA-API version 0.36.0
    libva info: va_getDriverName() returns 0
    libva info: Trying to open /usr/lib/dri/i965_drv_video.so
    libva info: Found init function __vaDriverInit_0_36
    libva info: va_openDriver() returns 0
    ==========================================================================
    Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
    libavcodec version 55.18.102 (internal)
    Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
    ==========================================================================
    ==========================================================================
    Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
    AUDIO: 48000 Hz, 2 ch, floatle, 384.0 kbit/12.50% (ratio: 48000->384000)
    Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
    ==========================================================================
    [AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
    AO: [alsa] 48000Hz 2ch floatle (4 bytes per sample)
    Starting playback...
    [VD_FFMPEG] Trying pixfmt=0.
    [VD_FFMPEG] XVMC-accelerated MPEG-2.
    Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
    VO: [vaapi] 1280x720 => 1280x720 H.264 VA-API Acceleration
    [VD_FFMPEG] XVMC-accelerated MPEG-2.
    [VD_FFMPEG] Trying pixfmt=0.
    [VD_FFMPEG] XVMC-accelerated MPEG-2.
    A: 0.7 V: 0.7 A-V: 0.016 ct: 0.052 0/ 0 7% 3% 1.4% 0 0

    Hi salman254,
    If you are having issues with your iPhone being unable to play video with the Videos application, you may want to try some things to troubleshoot.
    First, quit all running applications and test again -
    Force an app to close in iOS
    Next, I would try restarting and if needed resetting the iPhone -
    Restart or reset your iPhone, iPad, or iPod touch
    If the issue is still present, you may want to restore the iPhone as a new device -
    How to erase your iOS device and then set it up as a new device or restore it from backups
    Thanks for using Apple Support Communities.
    Best,
    Brett L  

  • Cant play video with new update

    Just updated my phone with I 0s 8 new version n now I can't play video on my phone play icon comes up but can't press it amd video doesn't play. How to sort this prob out.

    Hi salman254,
    If you are having issues with your iPhone being unable to play video with the Videos application, you may want to try some things to troubleshoot.
    First, quit all running applications and test again -
    Force an app to close in iOS
    Next, I would try restarting and if needed resetting the iPhone -
    Restart or reset your iPhone, iPad, or iPod touch
    If the issue is still present, you may want to restore the iPhone as a new device -
    How to erase your iOS device and then set it up as a new device or restore it from backups
    Thanks for using Apple Support Communities.
    Best,
    Brett L  

  • [SOLVED] KDEmod - problem with mounting b/c of non-ASCII characters

    Hi guys!
    I finally set aside a few gigabites for Archlinux - it is no more in a virtual machine So far I managed to configure everything with the excellent wiki. It's runnin' and kickin'. I run accross only one problem:
    When I insert a CD with a label that has non-ASCII characters (some Polish ones in my case) and I click on it's icon in Konqueror I get the message that "file such-and-such doesn't exist" - and the Polish characters are clearly misspelled (it is not a fonts' problem - I double checked). I can access the folder either via console or via konqueror if I go to the /media folder, though.
    Any ideas how I can fix it? If you need more info, let me know.
    Last edited by JeremyTheWicked (2008-05-31 14:46:07)

    You're welcome . Now it's advisable for you to edit the title of your initial post: add [SOLVED]. Perhaps more clear wording would be in order, too, for the benefit of the search engine. The problem seems to be a trifle in retrospect, but somehow it takes some effort to find the solution, doesn't it ?

Maybe you are looking for

  • How can I change the size of a card in iphoto?

    I created a card using iPhoto. The default size is too small. How can I make it bigger. Thanks

  • File deleted but no instance created

    Hi, I have created a process using a file adpter to read files and a FTP adapter to put the file. File adpeter is configured to delete the files after reading. The process deletes the files after reading. However, there is no instance created for the

  • Packaging Process in BYD

    Hi, Could anybody help me to know more about packaging process. I have created the logistics unit and tried to link this unit to the Package in the Outbound logitic. But the Logitics unit id is not showing in the Insert Package Button. Please help me

  • How can I rebuild my Organizer catalog in Premiere Elements?

    The Organizer keeps a catalog of all the media files on your system. In most cases, it will update automatically. You can also manually update its files by locating the files with broken links (They'll be displaying a "refresh" symbol, red and green

  • Can't adjust anchor points of path when keyframes enabled...

    I have an irregular shape layer that I'm warping over time (smaller to bigger). I'm able to adjust the anchor points of the path to the shapes I want-but once I set the two keyframes of the path that I'm interpolating with a slider, I am no longer ab