Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7722763
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T04:16:11+00:00 2026-06-01T04:16:11+00:00

I could not find a post to do it automatically as I don’t want

  • 0

I could not find a post to do it automatically as I don’t want to hard coded the mapping between English to Italian.

Is there any way to write the spelling number to any language in PLSQL, Oracle 10g or 11i ?

I do not have this built in package: AP_AMOUNT_UTILITIES_PKG in my oracle.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T04:16:13+00:00Added an answer on June 1, 2026 at 4:16 am
    CREATE OR REPLACE FUNCTION Currency_conversion(currency IN NUMBER) 
    RETURN VARCHAR2 IS 
        txt varchar2(4000);
        tlum  varchar2(4000);
        babelTxt varchar(32000);
        req   utl_http.req;
        resp  utl_http.resp;
        webtext VARCHAR2(4000);
        webextract VARCHAR2(4000);
    BEGIN
        -- This is used to convert number to words in english
        SELECT CAST( to_char( to_timestamp( lpad(currency,9,'0'), 'FF9' ), 'FFSP' ) AS VARCHAR2(100) )
        into txt from dual;
    
        -- FFSP is used to spell Fraction second in words for example HH24SP
        -- can be used to spell hours from 0 to 23,i used FFSP to get max range
        txt:=translate(txt,'x-','x ');
    
        -- The below logic is taken from
        -- https://forums.oracle.com/forums/thread.jspa?threadID=1122273(and)start=15(and)    tstart=0
        --need to test once
        -- request that exceptions are raised for error status codes
        utl_http.set_response_error_check(enable => TRUE); 
        -- allow testing for exceptions like Utl_Http.Http_Server_Error
        utl_http.set_detailed_excp_support(enable => TRUE);
    
        txt:=utl_url.escape(txt);
    
        babelTxt := 'http://babelfish.yahoo.com/translate_txt?doit=done' || '&'   || 'lp=en_it' || '&' || 'intl=1' || '&' || 'ei=utf8' || '&' || 'trtext=' || txt;
        req:=utl_http.begin_request(url => babelTxt, method => 'GET');
        resp := utl_http.get_response(r => req);
        BEGIN
            LOOP
                --utl_http.read_text(r => resp, data => webtext, len => 32767);
                    utl_http.read_line(r => resp , data => webtext);
    
                webextract := regexp_substr(webtext,'<div id="result"><div style="padding:0.6em;">(.+)</div></div>');
    
                if webextract is not null 
                then
                    select regexp_replace(webextract,'<div id="result"><div style="padding:0.6em;">(.+)</div></div>','\1')        
                    into tlum FROM dual;
                end if;
    
                exit when tlum is not null;
    
                END LOOP;
        EXCEPTION
         WHEN utl_http.end_of_body THEN
         NULL;
        END;
    
    
    
        utl_http.end_response(r => resp);
    
        return tlum;
    
        EXCEPTION
            WHEN OTHERS THEN
            dbms_output.put_line(SQLERRM);
            return '';
    END;
    /
    exit;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This should be a common scenario, but could not find any relevant post yet..
After having a search around I could not find exactly what I want, I
Sorry I could not find this. $('div#loader').slideDown(fast).delay(1.5); Does not word as expected, I want
I could not find any pointers on how to create a menubar icon on
I could not find the function that returns the name of the cell referenced.
I could not find a clear answer to this question elsewhere, so I'll try
I have searched but could not find the reason for this behavior. I have
I have research about an issue and could not find a solution for it
I searched a lot but could not find a way to dump table relations
I have been searching everywhere but I could not find an answer. I need

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.