Euro-sign (and Greek) doesn't work even with nchar/nvarchar2

This is something that has been blocking me for a few days now, and I'm running out of ideas.
Basically, the problem can be summarised as follows:
declare
    text nvarchar2(100) := 'Make €€€ fast!';
begin
  dbms_output.put_line( text );
end;And the output (both in SQL Developer and Toad) is:
Make ¿¿¿ fast!See, I was under the impression that by using nchar and nvarchar2, you avoid the problems you get with character sets. What I need this for is to check (in PL/SQL) what the length of a string is in 7-bit units when converted to the GSM 03.38 character set. In that character set, there are 128 characters: mostly Latin characters, a couple of Greek characters that differ from the Latin ones, and some Scandinavian glyphs.
Some 10 other characters, including square brackets and the euro sign, are escaped and take two 7-bit units. So, the above message takes 17 7-bit spaces.
However, if I make a PL/SQL function that defines an nvarchar2(128) with the 128 standard characters and another nvarchar2(10) for the extended characters like the euro sign (the ones that take two 7-bit units), and I do an instr() for each character in the source string, the euro sign gets converted to an upside-down question mark, and because the delta (the first Greek character in the GSM 03.38 character set) also becomes an upside-down question mark, the function thinks that the euro sign is in fact a delta, and so assigns a length of 1.
To try to solve it, I created a table with an nchar(1) for the character and a smallint for the number of units it occupies. The characters are entered correctly, and show as euro signs and Greek letters, but as soon as I do a query, I get the same problem again. The code for the function is below:
  function get_gsm_0338_length(
    text_content in nvarchar2
  ) return integer
  as
    v_offset integer;
    v_length integer := 0;
    v_char nchar(1);
  begin
    for i in 1..length(text_content)
    loop
      v_char := substr( text_content, i, 1 );
      select l
      into v_offset
      from gsm_0338_charset
      where ch = v_char;
      v_length := v_length + v_offset;
    end loop;
    return v_length;
    exception
      when no_data_found then
        return length(text_content) * 2;
  end get_gsm_0338_length;Does anybody have any idea how I can get this to work properly?
Thanks,
- Peter

Well, the person there used a varchar2, whereas I'm using an nvarchar2. I understand that you need the right codepage and such between the client and the database if you use varchar2, which is exactly the reason why I used the nvarchar2.
However, if I call the function from /Java/, it does work (I found out just now). But this doesn't explain why SQL Developer and Toad are being difficult, and I'm afraid that, because this function is part of a much bigger application, I'll run into the same problem.
- Peter

Similar Messages

  • HT5622 What do to when you buy app and it doesn't work even though you are billed.

    What to do when you buy an app and it doesn't work after you were billed

    Start a ticket here: http://expresslane.apple.com
    Go to iTunes, iTunes Store.

  • AirPlay Mirroring doesn't work even with the specified hardware/software

    Hello,
    I have a late 2011 (OS X 10.7.5) MBP and a Sep  2012 Apple TV (MD199LL/A) with the updated software 5.1.
    AirPlay Mirror icon doesn't appear in the menu bar.
    No options/icons or texts related to AirPlay mirroring in System Preferences > Displays either. Checked detect displays, still no.
    Updated all the software in both the MBP and the Apple TV on Oct 6th 2012 late evening/night and restarted both a couple of times, still no signs of AirPlay Mirror icon or option.
    BTW, AirPlay works with iTunes, so I can hear music from MBP on my TV.
    AirPlay Mirroring works with the latest iPad (as of Sep 2012) as well.
    I think one or two people have reported this issue on the forum in response to some question/discussion. Thought it deserved starting a new topic in case some Apple folks are listening.
    Perhaps their adverstising or guidelines need an update to remove references of AirPlay mirroring working with 2011 or newer MBPs. Perhaps they meant 2012 or newer?

    pthompson63
    To be honest I use mine mainly near power and juice up when I can so I don't test the battery too heavily, so I haven't noticed but would probably not.
    If mirror is the only thing you want to do but don't want ML look at third party apps such as airparrot or reflectorapp (I hvae used airparrot and found it OK).
    Jules

  • Mountain Lion Email doesn't work even with 10.8.1 update!

    My mail application completely failed shortly after the upgrade to Mountain Lion. None of the user advice has repaired it from these forums, so I have now resigned myself to using my ipad and iphone to conduct all my business emails. I was hopeful that this first 10.8.1 update from Apple would restore the my mail application. I can frustratingly report that no, it certainly hasn't. No change in fact. I click on the mail app and the beachball of death continues for about 5 minutes then it comes up with a message 'there is a problem with your mailboxes' with the option to quit or quit and rebuild index. If I choose that latter, the beachball resumes it's rotation forever or until I hard reset the machine as all other programs crash at this point. Apple, please help FAST, this is no way to run a business!!!!

    Agreed, but I think that for most Mail seems to be working fine. There don't seem to many posts complaining about Mail problems - well no more than usual.
    Have you tried a Safe Boot which sometimes helps in solving odd problems. and if that doesn't help, re-installing the OS using the Recovery HD?
    http://support.apple.com/kb/HT4718?viewlocale=en_US&locale=en_US
    For a Safe Boot restart holding down the shift key until you see a grey progress bar. Once booted restart as normal from the Apple menu.

  • A version of 'Adobe Master Collection cs 3' usb to my computer's hard disk when a placed a certain sum of money in the installation will be suspended as it is to insert the message. What's the solution? C, d, usb, doesn't work even with the installation i

    Help me plz..ㅠㅠ

    If you can take another attempt at explaining your problem it might be possible to help you.  I am not able to interpret what you are trying to say in your title and it ends with an incomplete statement.

  • Embed fonts on classic TextField doesn't work, even with TextFormat applied

    Hi.
    I created an Item that extends MovieClip and that has a TextField on it where it where it will display the item's name. I want to embed the font but I'm having trouble because the text won't display.
    I read the embedFonts description (http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/text/TextField.ht ml#embedFonts) and I have formatted the TextField via a TextFormat instance with my chosen font.
    My code:
    import flash.display.MovieClip;
        import flash.text.AntiAliasType;
        import flash.text.TextField;
        import flash.text.TextFieldAutoSize;
        import flash.text.TextFormat;
        public class Item extends MovieClip {
            private var _sName:String = "";
            private var _txtName:TextField = new TextField();
            private var _nColor:uint = 0xAACC00;
            private var _tfText:TextFormat = new TextFormat();
            public function Item(s:String) {
                //also tried embedding here but got the same result
                _txtName.text = s;
                _txtName.autoSize = TextFieldAutoSize.RIGHT;
                _tfText.font = "Helvetica";
                _tfText.size = 30;
                _tfText.color = _nColor;
                _txtName.setTextFormat(_tfText);
                _txtName.antiAliasType = AntiAliasType.ADVANCED;
                _txtName.embedFonts = true;
                addChild(_txtName);
    If I remove the embed part the text shows correctly. I'm at a loss, what order of elements do I need to use to embed the font correctly?
    Thank you.

    To use the embedFonts property you would have to use an actual embedded font. The way you have it coded it is using system fonts.
    I did a quick Google Search and this seems to explain how to embed fonts in AS3 quite well:
    http://divillysausages.com/blog/as3_font_embedding_masterclass

  • Why does my iMessage not work even with my apple ID signed in?

    Why does my iMessage not work even with my apple ID signed in?

    Using FaceTime http://support.apple.com/kb/ht4319
    Troubleshooting FaceTime http://support.apple.com/kb/TS3367
    The Complete Guide to FaceTime + iMessage: Setup, Use, and Troubleshooting
    http://tinyurl.com/a7odey8
    Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/TS4268
    iOS: FaceTime is 'Unable to verify email because it is in use'
    http://support.apple.com/kb/TS3510
    Using FaceTime and iMessage behind a firewall
    http://support.apple.com/kb/HT4245
    iOS: About Messages
    http://support.apple.com/kb/HT3529
    Set up iMessage
    http://www.apple.com/ca/ios/messages/
    iOS 6 and OS X Mountain Lion: Link your phone number and Apple ID for use with FaceTime and iMessage
    http://support.apple.com/kb/HT5538
    How to Set Up & Use iMessage on iPhone, iPad, & iPod touch with iOS
    http://osxdaily.com/2011/10/18/set-up-imessage-on-iphone-ipad-ipod-touch-with-io s-5/
    Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    Troubleshooting iMessage Issues: Some Useful Tips You Should Try
    http://www.igeeksblog.com/troubleshooting-imessage-issues/
    Setting Up Multiple iOS Devices for iMessage and Facetime
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
    FaceTime and iMessage not accepting Apple ID password
    http://www.ilounge.com/index.php/articles/comments/facetime-and-imessage-not-acc epting-apple-id-password/
    FaceTime, Game Center, Messages: Troubleshooting sign in issues
    http://support.apple.com/kb/TS3970
    Unable to use FaceTime and iMessage with my apple ID
    https://discussions.apple.com/thread/4649373?tstart=90
    How to Block Someone on FaceTime
    http://www.ehow.com/how_10033185_block-someone-facetime.html
    My Facetime Doesn't Ring
    https://discussions.apple.com/message/19087457
    Send an iMessage as a Text Message Instead with a Quick Tap & Hold
    http://osxdaily.com/2012/11/18/send-imessage-as-text-message/
    To send messages to non-Apple devices, check out the TextFree app https://itunes.apple.com/us/app/text-free-textfree-sms-real/id399355755?mt=8
    How to Send SMS from iPad
    http://www.iskysoft.com/apple-ipad/send-sms-from-ipad.html
    You can check the status of the FaceTime/iMessage servers at this link.
    http://www.apple.com/support/systemstatus/
     Cheers, Tom
    BTW- Your profile shows you have iOS 6.1.4 installed. The max iOS for an iPad is 6.1.3. iOS 6.1.4 is for iPhones only.

  • I just downlouded the latest version of the Muse CC and it doesn't work well, it freezes all the time, in particular with the tools. Example the selection tool doesen't wor at all.

    I just downlouded the latest version of the Muse CC and it doesn't work well, it freezes all the time, in particular with the tools. Example the selection tool doesn't wor at all. Is there any solution for this problem?

    Hi!
    I restarted the computer, but the same issue happens again. When I move my mouse over some object or tool, it doesn’t come active at all (only some of the tools works) When I try to change “site properties”, I can’t choose tablet or phone mode or even I can’t select the checkboxes, only thing what I can do is change the numbers (high and width) . After all the main problem is that I can’t select some of the items or functions by mouse, but only by the keyboard.

  • TS2771 i updated my ipod ,but before it work completely the screen turn blue,then white and now it doesnt work even if it charge. So, what do i do? PLEASE ANSWER MY QUESTION PLEASE TELL ME WHAT TO DO

    i updated my ipod ,but before it work completely the screen turn blue,then white and now it doesnt work even if it charge. So, what do i do? PLEASE ANSWER MY QUESTION PLEASE TELL ME WHAT TO DO so i todd what others did then i did it but it kept showing the apple sign and now turn to blue again the turn yellow now white. Apple please fix it i havent been able to be gone at all past few days because of this also tries to connect with my labtop didnt work whats up with it. for people who didnt update it wait until they fix it beleive me

    it still blinking with the apple sign

  • Installed Panther on Older iMac and Mail Doesn't Work Correctly

    I installed panther on my son's iMac recently. I created a subaccount for him from my verizon dsl account. I made sure all the info was the same on my mail preferences as in his but we can't send or received anything. I keep getting a message to put in the password for the account and I do and it doesn't let me in, just the same message comes up again. I put his account into my mac's Mail program and it works fine, but on his it doesn't. All the info is the same - I've checked and checked his password and it doesn't work. I even put my account info onto his computer and I have the same password problems. Anybody?

    thank you now everything works
    For people with the same problem:
    Outgoing server (SMTP): port 587 – you must also choose “TLS” for the option “Use the following types of encrypted connection”.

  • MacBook doesn't turns into sleep mode and swop doesn't work.

    MacBook doesn't turns into sleep mode and swop doesn't work.
    Can you help me please. I have a MacBook Pro 8.2. I reinstalled OS X to make swop file working, but it still doesn't work. I reinstalled OS X from Internet recovery.
    Start time: 10:31:02 03/15/15
    Model Identifier: MacBookPro8,2
    System Version: OS X 10.10.2 (14C109)
    Kernel Version: Darwin 14.1.0
    Time since boot: 3 minutes
    Memory
        BANK 0/DIMM0:
          Size: 4 GB
          Speed: 1333 MHz
          Status: OK
          Manufacturer: 0x029E
        BANK 1/DIMM0:
          Size: 4 GB
          Speed: 1333 MHz
          Status: OK
          Manufacturer: 0x029E
    SerialATA
       TOSHIBA MK5065GSXF                     
    Diagnostic reports
       2015-03-15 Boom 2 crash
       2015-03-15 com.apple.internetaccounts crash
    Log
       Mar 15 10:26:10 memorystatus_thread: idle exiting pid 546 [tccd]
       Mar 15 10:26:11 memorystatus_thread: idle exiting pid 547 [nsurlstoraged]
       Mar 15 10:26:12 memorystatus_thread: idle exiting pid 544 [soagent]
       Mar 15 10:26:13 memorystatus_thread: idle exiting pid 548 [nsurlstoraged]
       Mar 15 10:26:43 memorystatus_thread: idle exiting pid 556 [com.apple.CodeSi]
       Mar 15 10:26:44 memorystatus_thread: idle exiting pid 558 [accountsd]
       Mar 15 10:26:45 memorystatus_thread: idle exiting pid 553 [com.apple.iCloud]
       Mar 15 10:26:46 memorystatus_thread: idle exiting pid 561 [networkd_privile]
       Mar 15 10:26:47 memorystatus_thread: idle exiting pid 555 [secinitd]
       Mar 15 10:26:48 memorystatus_thread: idle exiting pid 560 [tccd]
       Mar 15 10:26:49 memorystatus_thread: idle exiting pid 562 [secd]
       Mar 15 10:26:50 memorystatus_thread: idle exiting pid 554 [com.apple.intern]
       Mar 15 10:26:51 memorystatus_thread: idle exiting pid 565 [nsurlstoraged]
       Mar 15 10:26:52 memorystatus_thread: idle exiting pid 563 [soagent]
       Mar 15 10:26:53 memorystatus_thread: idle exiting pid 551 [syncdefaultsd]
       Mar 15 10:26:54 memorystatus_thread: idle exiting pid 557 [CoreServicesUIAg]
       Mar 15 10:26:55 memorystatus_thread: idle exiting pid 567 [iconservicesd]
       Mar 15 10:26:56 memorystatus_thread: idle exiting pid 566 [iconservicesagen]
       Mar 15 10:26:57 memorystatus_thread: idle exiting pid 568 [systemstatsd]
       Mar 15 10:26:58 memorystatus_thread: idle exiting pid 550 [cfprefsd]
       Mar 15 10:26:59 memorystatus_thread: idle exiting pid 552 [cfprefsd]
       Mar 15 10:27:00 memorystatus_thread: idle exiting pid 549 [coreduetd]
       Mar 15 10:27:01 memorystatus_thread: idle exiting pid 564 [nsurlstoraged]
       Mar 15 10:28:18 ** GPU Hardware VM is disabled (multispace: disabled, page table updates with DMA: disabled)
       Mar 15 10:29:09 proc 316: load code signature error 4 for file "Boom 2"
    I/O per process: coresymbolicati (UID 0) is using 15 MB/s
    kexts
       com.globaldelight.driver.Boom2Device (1.1)
    Daemons
       com.apple.installer.osmessagetracing
    Agents
       com.apple.AirPortBaseStationAgent
       com.globaldelight.Boom2Daemon
    Extensions
       /Library/Extensions/Boom2Device.kext
       - com.globaldelight.driver.Boom2Device
       /System/Library/Extensions/EPSONUSBPrintClass.kext
       - com.epson.print.kext.USBPrintClass
       /System/Library/Extensions/JMicronATA.kext
       - com.jmicron.JMicronATA
    Applications
       /Applications/Boom 2.app
       - com.globaldelight.Boom2
       /Applications/Boom 2.app/Contents/Library/LoginItems/Boom2Daemon.app
       - null
    Bundles
       /Library/Printers/Canon/BJPrinter/Plugins/BJNP/CIJNetworkIOM.plugin
       - jp.co.Canon.ij.print.iom.CIJNP
       /Library/Printers/Canon/BJPrinter/Plugins/BJNP/CIJNetworkPBM.plugin
       - jp.co.Canon.ij.print.pbm.CIJNP
       /Library/Printers/Canon/BJPrinter/Plugins/BJUSB/BJUSBIOM.plugin
       - jp.co.canon.bj.print.bjusbiom
       /Library/Printers/Canon/BJPrinter/Plugins/BJUSB/BJUSBPBM.plugin
       - jp.co.canon.bj.print.pbm.USB
       /Library/Printers/Canon/BJPrinter/Plugins/BJUSB/CIJUSBClassDriver.plugin
       - jp.co.canon.ij.print.CIJUSBClassDriver
       /Library/Printers/Canon/BJPrinter/Plugins/BJUSB/CIJUSBClassDriver2.plugin
       - jp.co.canon.ij.print.CIJUSBClassDriver2
       /Library/Printers/Canon/BJPrinter/Plugins/IJBluetooth/IJBluetoothIOM.plugin
       - jp.co.canon.ij.print.ijbluetoothiom
       /Library/Printers/EPSON/CIOSupport/CIOHelper.plugin
       - com.epson.print.plugin.CIOHelper
       /Library/Printers/EPSON/CIOSupport/EPSONUSBPrintClass.plugin
       - com.epson.print.plugin.USBPrintClass
       /Library/Printers/EPSON/CIOSupport/XIOP.plugin
       - com.epson.print.plugin.XIOP
       /Library/Printers/EPSON/CIOSupport/XIORemoteClient.plugin
       - com.epson.print.plugin.XIORemoteClient
       /Library/Printers/EPSON/CIOSupport/XIORemoteServer.plugin
       - com.epson.print.plugin.XIORemoteServer
    Restricted files: 219
    Elapsed time (s): 238

    Remove "Boom" and test.
    Any third-party software that doesn't install by drag-and-drop into the Applications folder, and uninstall by drag-and-drop to the Trash, is a system modification.
    Whenever you remove system modifications, they must be removed completely, and the only way to do that is to use the uninstallation tool, if any, provided by the developers, or to follow their instructions. If the software has been incompletely removed, you may have to re-download or even reinstall it in order to finish the job.
    I never install system modifications myself, and except as stated in this comment, I don't know how to uninstall them. You'll have to do your own research to find that information.
    Here are some general guidelines to get you started. Suppose you want to remove something called “BrickMyMac” (a hypothetical example.) First, consult the product's Help menu, if there is one, for instructions. Finding none there, look on the developer's website, say www.brickmymac.com. (That may not be the actual name of the site; if necessary, search the Web for the product name.) If you don’t find anything on the website or in your search, contact the developer. While you're waiting for a response, download BrickMyMac.dmg and open it. There may be an application in there such as “Uninstall BrickMyMac.” If not, open “BrickMyMac.pkg” and look for an Uninstall button. The uninstaller might also be accessed by clicking the Customize button, if there is one.
    Back up all data before making any changes.
    You will generally have to restart the computer in order to complete an uninstallation. Until you do that, there may be no effect, or unpredictable effects.
    If you can’t remove software in any other way, you’ll have to erase and install OS X. Never install any third-party software unless you're sure you know how to uninstall it; otherwise you may create problems that are very hard to solve.
    Trying to remove complex system modifications by hunting for files by name often will not work and may make the problem worse. The same goes for "utilities" such as "AppCleaner" and the like that purport to remove software.

  • My Ipod Froze And It Froze On Pandora And I Can Hear Pandora But I Click The Home Button And It Doesn't Work? Help Me

    My Ipod Froze And It Froze On Pandora And I Can Hear Pandora But I Click The Home Button And It Doesn't Work? Help Me

    Try this:
    1. Close all apps in the Task Bar. Double-click the Home button and hold apps down for a second or two. Tap the minus sign to close app.
    2. Hold the Sleep and Home button down until you see the Apple Logo.

  • I plugged in my headset and it doesn't work,  am I supposed to change modes or something?

    I plugged in my headset and it doesn't work. Do I need to change modes? If so, how do I do that? Any help would be appreciated.

    If you were using icloud for your contacts then they are synced automatically everytime you add a new one or delete one. They will return to your new phone once you sign back into your icloud account.

  • IPhone 5 torch and flash doesn't work

    iPhone 5 torch and flash doesn't work? How can I activate?

    The flash is activated as follows:
    When you are in camera mode, and the camera is open about to take a photo, you will see an elliptical button in the upper left with a flash-like sign.  Press that button and you will find it has three settings: Auto, On, and Off.
    Choose one.
    I don't know what you mean by "torch".

  • How to reset my iPod touch thats disabled it doesn't work even charging

    How to reset my iPod touch thats disabled it doesn't work even charging

    If the sleep/wake button doesn't work use the home button and if the home button doesn't work it's the other way around, however if both of them don't work charge it with your connector connected with your computer or wall socket and it will turn on. Hope this helps.

Maybe you are looking for

  • Quota Generation with different base entitlements

    Hi, I have a quota type PTO of 80 hrs which is applicable for all the associates who completed 90 days service. So, I configured the base entilements seniority as 004-999 months and given 80 hrs. While generating the quota for an associate who joined

  • Problem in SXMB_MONI

    Hi Experts, I have problem in SXMB_MONI when i am sending messages from RWB the messages which have BPM Associated with it are not been visible in SXMB_MONI but the messages which do not involve BPM that which are sent from RWB are visible . what cou

  • How do I switch the Start Up Disk back to Mac OSX hardrive ?

    Hi Mac users.... I think I created a huge problem on my computer. I was looking to stop a program from opening up, snapz pro x, every time I restarted my computer. I found out how to delete eventually, but during my search I went to system preference

  • Validation in BDC

    hi experts,                        I am uploading customer details from legacy file to SAP systems. Can I write single BDC program to change the customer details or else to create a new customer based on the customer number in legacy file.           

  • Webservice date format

    I have used "clientgen" Ant task to generate the client library. The WSDL indicates that certain fields are of type xsd:date. The web service client sends sends "2009-08-04T13:55:46.237-04:00". However, the server expects "2009-08-04". In the WSDL fi