Dbms_crypto.encrypt_rc4 doesn´t work with special characters

Hi.
I´m using this funtion to cryptografy but when I put this characters, doesn´t work.
Does anyone have any ideia the whats happening, thank you
FUNCTION fnc_get_enc_val_rc4 (
p_in_val IN VARCHAR2,
p_key IN VARCHAR2,
p_iv IN VARCHAR2 := NULL
RETURN VARCHAR2
IS
l_enc_val RAW (4000);
l_enc_algo PLS_INTEGER;
l_in RAW (4000);
l_iv RAW (4000);
l_key RAW (4000);
l_ret VARCHAR2 (4000);
BEGIN
l_enc_algo := dbms_crypto.encrypt_rc4;
l_in := utl_i18n.string_to_raw (p_in_val, 'AL32UTF8');
l_iv := utl_i18n.string_to_raw (p_iv, 'AL32UTF8');
l_key := utl_i18n.string_to_raw (p_key, 'AL32UTF8');
--l_key := utl_i18n.string_to_raw (UTL_I18N.UNESCAPE_REFERENCE(p_key), 'AL32UTF8');
--utl_i18n. AL32UTF8
--sys.utl_i
l_enc_val :=
dbms_crypto.encrypt (src => l_in,
KEY => l_key,
iv => l_iv,
typ => l_enc_algo
+ dbms_crypto.chain_cbc
+ dbms_crypto.pad_pkcs5
dbms_output.put_line (l_enc_val);
l_ret := RAWTOHEX (l_enc_val);
RETURN l_ret;
END;
fnc_get_enc_val_rc4 ('eT1yD','!@#$%&/()=?¿')
must return 16 9E 76 AD 38
but returns 43 45 25 92 4A
to skip some replies
I already did
utl_i18n.escape_reference
utl_i18n.unescape_reference
change the AL32UTF8 fopr others
if I use with others values end keys, its ok, but with this key don´t....its a bug...?
tks
I m using oracle 10g

890408 wrote:
Database A: WE8ISO8859P15
Database B: WE8MSWIN1252
When i do a dump(desc) on both columns I get for the reversed question mark on DB A ASCII Code 133, and for DB B I get 191.This has nothing to do with group by, from what you describe.
It seems you have a illegal character and replacement character in the db's.
How did you insert these two characters/rows and please also post actual dump output (including the query, select col, dump(col,1016), ...).
How I can I convert between the different character sets, so that my GROUP BY works as well?Firstly, you need to make sure the database character sets are capable of storing every character from your clients/apps and that you have a properly setup locale on the client side (including matching char set part of NLS_LANG).
E.g. a win-1252 client is not supported by a iso 8859-15 server, at least not if you are using or plan to use 'windows specific' characters (like the ... ellipsis).

Similar Messages

  • Problem with special characteres

    Hi. I have a problem with java. I�m making an application that works with special characters and displays correctly on my local machine, as I use escape characters such as ì for �. The problem is when I deploy the application on a unix machine. All of the special characters (�, �, �, etc) appear like a �?� (question mark). Any tips, please?
    Thanks in advance

    Andy2008 wrote:
    Hi. I have a problem with java. I’m making an application that works with special characters and displays correctly on my local machine, as I use escape characters such as ì for �. The problem is when I deploy the application on a unix machine. All of the special characters (‘, �, �, etc) appear like a “?” (question mark). Any tips, please?First step: read [this excellent introduction into Unicode|http://www.joelonsoftware.com/articles/Unicode.html], it will give you the basics you need to solve this problem.
    How do you input and output those characters? Simply print them to the console? Or write them to a HTML file (since you mention &<something>; notation)?
    "?" is normally the result when you convert a String (which is always in UTF-16 encoding in Java) to an encoding that can't represent your characters (ASCII for example).

  • Tag Query with Special Characters in Tag Name not working

    Hello-
    We are on SAP xMII 12.0 sp8.6, connecting to Honeywell's PHD. We are doing Tag Queries, and all is working well, except when there are special characters in the Tag Name (+, /, \) We have attempted to do the Encoding of the tag name, such as as is returned from the function xmlencodename and also tried URL Encoding.
    Here is our tag which returns nothing.
    82TK1INV.OCTANE_R+M/2
    We have also tried these encoded versions, still to no avail:
    82TK1INV.OCTANE_R%2BM%2F2
    82TK1INV.OCTANER_M_2
    Any help on how to return the values with special characters in the tag name would be very helpful!
    thanks,
    Paul Mazeika

    To Chianti's question of why can't/shouldn't MII work with those bizarre tag names...
    Actually, there are a number of reasons:
    1) It's a poor design practice to use characters like that in tag names, regardless of the underlying system.  That type of information is best assigned to the tag description, not the tag name.  I've even seen idiots put leading spaces on tag names...figure that one out!
    2) MII uses XML extensively, and XML's syntax rules dictate what is and is not acceptable for XML element and attribute names, and many of these special characters are not permitted.
    3) Usage of characters in tags that also represent mathematical operators greatly complicate the parsing and processing of expressions that involve tag names
    In general, it reminds of the story of the guy who walks into the doctor, bangs his fist against a specific spot on his head, and says "Doc, it hurts when I do this", to which the doctor responds, "so don't do that". 
    So, Don't Do That.

  • Problems with special characters like "u00F6" "u00E4" "u00FC"

    Hi,
    we currently face some major problems with special characters like "ö" "ä" "ü". First I thought it is a SP02 specific problem but it still doesn't work with SP03.
    When I start an import the import manager shows correct converted value. "ö"s "ä"s "ü"s are displayed correctly. But after I've done the import I look into the Data manager and I see instead of these characters charcaters like "&#776;". (note: the character should show a little square box - but the forum cannot desplay it)
    How can I solve this problem?
    Regards
    Nico

    Hi Nico
      Just try it out the following steps, hope it solves ur issue.
    <b>To set one or more values back to their original values:</b>
    1. In the Import Manager Source Values grid, select the values that you want to set back to their original values.
    2. Right-click on one of the values and choose Set to Original Value from the context menu, or choose Values > Apply Value Conversion Filter > Set to Original Value from the main menu.
    3. MDME sets each value back to its original value, which appears in black in the Source Values grid.
    <b>NOTE : You can use the Set to Original Value filter only at the value-level and not at the field level.</b>
    thanks
    Alexander

  • Problem figuring out the encoding for filenames with special characters

    I'm not sure if this is the right forum, but this does seem like an OS issue.
    I brought in a lot of mp3 and m3u files from a Windows machine to my new Mac. Some of the mp3 files have accented characters in their names, and these names appear in the m3u files. But if I add the m3u file to iTunes, it fails to recognize these names and so I lose all the mp3's with special characters in their names.
    I tried to fix this by grabbing the files name in Python, but that didn't work either!
    Here's an example: the file's name is "Voilà l'été.mp3"
    The m3u files says "Voil\xe0 l'\xe9t\xe9.mp3" -- this doesn't work.
    From os.listdir(), I get Voila\xcc\x80 l'e\xcc\x81te\xcc\x81.mp3", but sticking it in an m3u files doesn't work either. (Note that here the characters are encoded as unaccented letter + two byte code for the accent).
    When I try these strings from python, e.g. doing os.stat(), they both work; but iTunes doesn't understand any of them!
    I'd appreciate any hints on how to enter these names in the m3u file so that iTunes can read it. Thanks!

    I know nothing about "m3u" files and how iTunes interprets the file names in them, but if it is not a relative/absolute path problem, then how about just putting the raw file names (not the ones with backslash escape) in m3u file? For example, just put
    Voilà l'été.mp3
    in m3u?
    As for Unicode encoding, HFS+ file system uses the "decomposed form" for accented characters. This means, as you write, à is hex "61 cc 80" in UTF-8, i.e., "a + COMBINING GRAVE ACCENT". The pre-composed form is hex "c3 a0". But my experience is that in most cases both pre-composed and decomosed forms work at the user level (not at the lowest file system level).

  • Problems with Special Characters on Exchange Email

    Hello:
    People I have a issue with our Corporate Email on my Iphone. We use Exchange 2003 and we have users with special characters on his emails address.
    I receive fine the email, just appear a errors on the display name. The issue is when I try to reply thie email. A error message popup said:
    Invalid Address
    "email with special characters" does not appear to be a valid email address. Do you want to send it anyway?
    If I press Yes, Iphone try to send the message But I receive another error message:
    Cannot send Mail
    An error ocurred while delivering this message.
    Any Help or Idea?
    Here My Email Configuration
    Email = Email
    Server = Server IP
    Domain = Work Domain Name
    Username = my user id
    Password = my password
    Description = Work
    Use SSL = ON
    S/Mime = Off

    When I Said "we have users with special characters on his emails address" its mean users with ñ,ó, ú, Ñ on his emails address. 
    When I said "just appear a errors on the display name" I mean characters like Âñ¡
    Thanks

  • Problems with special characters in JSP app

    Hello!
    I am working for a JSP application which uses special characters.
    The database used is a Novell MySQL version, it is fine.
    I use Tomcat, Apache.
    I do not think that the versions are important.
    ON NT:
    The application works fine with special characters.
    Obs: I tried only with Tomcat; I didn't use Apache.
    ON NOVELL:
    If I try to insert some special characters,
    they arrive just fine into the database.
    The problem is when I want to display them.
    I tried with jsp directive to set the charset,
    or with HTML meta tag - no result al all.
    Everytime I use the same work station, and the same browser to do the tests.
    Please help with any ideas.
    Another question, maybe relayed:
    Can I set Tomcat so that when it creates the servlets it uses a custom charset I can indicate?
    THANK YOU!

    The characters I want to use are french characters, e-acute, etc.
    I take the data with request.getParameter, POST method, etc.

  • SSID with special characters showing up in place of the letters

    On a Win 7 machine the SSID list of available wireless networks is showing up with special characters in place of the normal letters in the name of the SSID... It has nothing to do with the Linksys Router, it is a problem on this computer. It makes it impossible to connect to a wireless network. I removed the device and reinstalled it hoping that might help. I can't find any viruses, (Known Viruses) Has anyone here seen this before? I am atttaching a photo of this. Any help appreciated.

    marke1102 wrote:
    On a Win 7 machine the SSID list of available wireless networks is showing up with special characters in place of the normal letters in the name of the SSID... It has nothing to do with the Linksys Router, it is a problem on this computer. It makes it impossible to connect to a wireless network. I removed the device and reinstalled it hoping that might help. I can't find any viruses, (Known Viruses) Has anyone here seen this before? I am atttaching a photo of this. Any help appreciated.
    Is this the only computer having a problem? How many wireless devices are connected and working to the router right now?

  • Male to male audio cable for car doesn't work with my iphone 4s?

    I have a 3.5 mm male to male cable that I have used in my car so I can listen to my music.  It works fine with my iphone 3G, but it doesn't work with the new 4s.  Is there a special cable I need to use with it?  It's weird, because my earbuds work with either iphone, but not the audio cable.  Suggestions??

    I have the exact same issue with my new 4S.
    I haven't find a solution yet.

  • 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>

  • WP Greek Century in Mac doesn't work with Dreamweaver

    I am a many year PC user and have finally made the leap too Mac and its another learning curve .. That said, in Dreamweaver and in Mac, WP Greek Century does not work!  I have reloaded the font and all I see is the alpha #.   If I load it into any browser, it still will not read greek.  My old PC didn't have a problem with this.  Some of the download sites say that this font, WP Greek Century, works with both PC and Mac.  The one odd spin to all this is that this greek font works in Fireworks ... Is there anything I can do to make it work in Dreamweaver?  Please advise and thanks.  Mark
    ps.  I called Apple support and they could not help.

    Thanks for your reply and I was afraid that this might the answer.  Looks
    like I'm going to have to go back and fix a bunch of documents. Appreciate
    your help in this matter.  Mark
    From:   SnakEyez02 <[email protected]>
    To:     Marcusb B <[email protected]>
    Date:   02/13/2012 09:20 PM
    Subject:        WP Greek Century in Mac doesn't work with
    Dreamweaver
    Re: WP Greek Century in Mac doesn't work with Dreamweaver
    created by SnakEyez02 in Dreamweaver - View the full discussion
    Fonts don't work on the web like they do in print.  Any font you use on a
    website will require that the end user have that same font installed on
    their system.
    I did try to load that font from a free source (assuming this is how you
    got it).  It is a PC TrueType and doesn't appear to work at all on the
    Mac.  Now if you are looking for just a few characters you can code this
    into the HTML:
    http://tlt.its.psu.edu/suggestions/international/bylanguage/greekchart
    .html .  As far as other fonts, this greek font seems to work on Mac:
    http://www.dafont.com/ancient-geek.font .  But again, it's not a web-font
    so you won't be legally allowed to use it on web pages, and it will only
    work if the end user has that font installed on their system, unlike the
    HTML entities previously linked.
    Replies to this message go to everyone subscribed to this thread, not
    directly to the person who posted the message. To post a reply, either
    reply to this email or visit the message page: [
    http://forums.adobe.com/message/4205108#4205108]
    To unsubscribe from this thread, please visit the message page at [
    http://forums.adobe.com/message/4205108#4205108]. In the Actions box on
    the right, click the Stop Email Notifications link.
    Start a new discussion in Dreamweaver by email or at Adobe Forums
    For more information about maintaining your forum email notifications
    please go to http://forums.adobe.com/message/2936746#2936746.

  • IPod Stuff doesn't work with my new iPhone

    I finally sprung for the iPhone three weeks ago and I love it. But I think I'm going to have to buy more new stuff. Neither set of my portable speakers that I use with my iPod (5th gen. video) work with the iPhone. When I put the iPhone in the dock, I get some message about Airplane Mode. Music does play through the speakers, but they won't charge the iPhone. When I put the iPhone on its own charger and tried to use the auxiliary input on the speakers, there was only silence.
    Do I need a special cable or something?
    Also, my car charger for the iPod doesn't work with the iPhone.
    Am I going to have to spring for another set of portable speakers? I've read that the Pure-Fi is compatible with iPhone.
    Thanks!

    Both my mini and my video iPod were USB -- not Firewire.
    Both your Mini and your iPod with video synced via USB and charged via USB when connected to your Mac, but they also support charging via Firewire and most of the older 3rd party devices charged iPods via Firewire - your iPods include firewire pins in the connector for charging via firewire.
    The first generation iPhone also syncs and charges via USB when connected to a computer, and the first generation iPhone also includes firewire pins for charging via firewire also, as your iPods include. The first generation iPhone does not support syncing via Firewire, but it does support charging via Firewire.
    Apple removed the firepins from the iPhone 3G connector as they have done with all new iPods released after a certain date and for all new iPods to be released in the future. 3rd party device manufacturers were made aware of this so all new 3rd party devices must support charging via USB only or include charging via USB in addition to charging via Firewire if a new device is to be backwards compatible with older iPods.

  • Tabular model column rename with special characters - ), *, /, +, %, [ etc

    I am working in tabular model 2012. I have requirement to rename the column names with special characters like ), *, /, +, %, [ etc. When I try to rename in my model, it gives me below error:
    I also tried renaming the columns after creating a new test model with no luck. I may have lived with this error however we have another tabular model which contains special charaters in the name. This makes me believe that there must be some setting that
    I am missing.
    I tried changing the column name in other model having some special characters and it takes it.
    I have gone through this link#
    https://connect.microsoft.com/SQLServer/feedback/details/802009/ssdt-ssas-tabular-column-name-with-special-characters
    and
    http://msdn.microsoft.com/en-us/library/gg492144(v=sql.110).aspx which says that special characters are not allowed in column names however I am able to do it in one of our
    models then why not others.
    Any help is appreciated! Thank you for you time.
    If this post answers your query, please click "Mark As Answer" or "Vote as Helpful".

    Well Mr. Google helped me.. I got the solution:
    Databases of a specific modality and compatibility level can have object names that include reserved characters. Dimension
    attribute, hierarchy, level, measure and KPI object names can include reserved characters, for tabular databases (1103 or higher) that allow the use of extended characters.
    How to change the compatibility, just right click on the .bim file from SSDT and go to properties and change the compatibility to 1103. 
    I hope this will help someone. :-)
    Useful MSDN Links: 
    http://msdn.microsoft.com/en-us/library/bb522632.aspx
    http://msdn.microsoft.com/en-us/library/jj674204.aspx
    If this post answers your query, please click "Mark As Answer" or "Vote as Helpful".

  • Trying to load illustrator 6cs onto new mac and the old activation code for my ill cs doesn't work with it

    Trying to load a downloaded version of illustrator 6cs onto new mac and the old activation code for my illustrator cs doesn't work with it.  Do I need a new code or am I missing something?  Same goes for my Photoshop cs.

    you need your serial number.
    if you purchased from or registered with adobe check your account, https://www.adobe.com/account.html

  • Cinema Display (clear) with DVI/ADC box doesn't work with MacBook Pro

    Cinema Display (clear) with DVI/ADC box doesn't work with MacBook Pro when plugged in with a dvi to mini dvi cable. Any ideas what to do to make it work? I lugged the 23" 2500 miles into the wilderness and I need help

    Okay, here's an update: the DVI to ADC adapter does work with the Apple displays that I have tried, but it won't work with the Formac. I have tried multiple time to contact them, but to no avail... they don't even respond to threats of posting my opinion of them, which is this:
    DON'T BUY ANYTHING FROM FORMAC! They make quality products, but their customer service is a big time joke! They won't take care of you.

Maybe you are looking for