<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: How to convert inputted arithmetic numbers to Chinese numerals in DevOps forum</title>
    <link>https://www.servicenow.com/community/devops-forum/how-to-convert-inputted-arithmetic-numbers-to-chinese-numerals/m-p/3054941#M3191</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/738427"&gt;@sugit&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Create On Before BR&amp;nbsp; and use the below script&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;function arabicToChinese(num) {&lt;BR /&gt;const chineseNumbers = ["零", "一", "二", "三", "四", "五", "六", "七", "八", "九"];&lt;BR /&gt;return num.toString().split('').map(digit =&amp;gt; chineseNumbers[parseInt(digit)]).join('');&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;// Assuming 'address' is the field you're working with&lt;/P&gt;&lt;P&gt;address --&amp;gt; replace address with your field name&lt;BR /&gt;if (current.address) {&lt;BR /&gt;current.address = current.address.replace(/\d+/g, function(match) {&lt;BR /&gt;return arabicToChinese(match);&lt;BR /&gt;});&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P class=""&gt;&lt;I&gt;Please mark this response as&amp;nbsp;&lt;STRONG&gt;Correct&lt;/STRONG&gt;&lt;/I&gt;&lt;STRONG&gt;&lt;I&gt;&amp;nbsp;&lt;/I&gt;&lt;/STRONG&gt;&lt;I&gt;and&amp;nbsp;&lt;STRONG&gt;Helpful&lt;/STRONG&gt;&lt;/I&gt;&lt;STRONG&gt;&lt;I&gt;&amp;nbsp;&lt;/I&gt;&lt;/STRONG&gt;&lt;I&gt;if it helps you can mark more that one reply as accepted solution.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Eshwar&lt;/I&gt;&lt;/P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 25 Sep 2024 04:05:31 GMT</pubDate>
    <dc:creator>Eshwar Reddy</dc:creator>
    <dc:date>2024-09-25T04:05:31Z</dc:date>
    <item>
      <title>How to convert inputted arithmetic numbers to Chinese numerals</title>
      <link>https://www.servicenow.com/community/devops-forum/how-to-convert-inputted-arithmetic-numbers-to-chinese-numerals/m-p/3054886#M3190</link>
      <description>&lt;P&gt;The user enters a specific address in the address field. Then, when the Save button is pressed, the user wants to convert the arithmetic numbers to Chinese numerals and save them ( &lt;SPAN&gt;5-chome&lt;/SPAN&gt;&amp;nbsp;to 　五-chome).&lt;BR /&gt;Is there a better way to do this?&lt;BR /&gt;Thanks, everyone.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 01:23:40 GMT</pubDate>
      <guid>https://www.servicenow.com/community/devops-forum/how-to-convert-inputted-arithmetic-numbers-to-chinese-numerals/m-p/3054886#M3190</guid>
      <dc:creator>sugit</dc:creator>
      <dc:date>2024-09-25T01:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert inputted arithmetic numbers to Chinese numerals</title>
      <link>https://www.servicenow.com/community/devops-forum/how-to-convert-inputted-arithmetic-numbers-to-chinese-numerals/m-p/3054941#M3191</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/738427"&gt;@sugit&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Create On Before BR&amp;nbsp; and use the below script&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;function arabicToChinese(num) {&lt;BR /&gt;const chineseNumbers = ["零", "一", "二", "三", "四", "五", "六", "七", "八", "九"];&lt;BR /&gt;return num.toString().split('').map(digit =&amp;gt; chineseNumbers[parseInt(digit)]).join('');&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;// Assuming 'address' is the field you're working with&lt;/P&gt;&lt;P&gt;address --&amp;gt; replace address with your field name&lt;BR /&gt;if (current.address) {&lt;BR /&gt;current.address = current.address.replace(/\d+/g, function(match) {&lt;BR /&gt;return arabicToChinese(match);&lt;BR /&gt;});&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P class=""&gt;&lt;I&gt;Please mark this response as&amp;nbsp;&lt;STRONG&gt;Correct&lt;/STRONG&gt;&lt;/I&gt;&lt;STRONG&gt;&lt;I&gt;&amp;nbsp;&lt;/I&gt;&lt;/STRONG&gt;&lt;I&gt;and&amp;nbsp;&lt;STRONG&gt;Helpful&lt;/STRONG&gt;&lt;/I&gt;&lt;STRONG&gt;&lt;I&gt;&amp;nbsp;&lt;/I&gt;&lt;/STRONG&gt;&lt;I&gt;if it helps you can mark more that one reply as accepted solution.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Eshwar&lt;/I&gt;&lt;/P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 25 Sep 2024 04:05:31 GMT</pubDate>
      <guid>https://www.servicenow.com/community/devops-forum/how-to-convert-inputted-arithmetic-numbers-to-chinese-numerals/m-p/3054941#M3191</guid>
      <dc:creator>Eshwar Reddy</dc:creator>
      <dc:date>2024-09-25T04:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert inputted arithmetic numbers to Chinese numerals</title>
      <link>https://www.servicenow.com/community/devops-forum/how-to-convert-inputted-arithmetic-numbers-to-chinese-numerals/m-p/3055150#M3192</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/265938"&gt;@Eshwar Reddy&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Really, thank you.&lt;/P&gt;&lt;P&gt;you have helped me solve my issues.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 07:03:14 GMT</pubDate>
      <guid>https://www.servicenow.com/community/devops-forum/how-to-convert-inputted-arithmetic-numbers-to-chinese-numerals/m-p/3055150#M3192</guid>
      <dc:creator>sugit</dc:creator>
      <dc:date>2024-09-25T07:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert inputted arithmetic numbers to Chinese numerals</title>
      <link>https://www.servicenow.com/community/devops-forum/how-to-convert-inputted-arithmetic-numbers-to-chinese-numerals/m-p/3055699#M3194</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/738427"&gt;@sugit&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;I&gt;Please mark this response as&amp;nbsp;&lt;STRONG&gt;Correct&lt;/STRONG&gt;&lt;/I&gt;&lt;STRONG&gt;&lt;I&gt;&amp;nbsp;&lt;/I&gt;&lt;/STRONG&gt;&lt;I&gt;and&amp;nbsp;&lt;STRONG&gt;Helpful&lt;/STRONG&gt;&lt;/I&gt;&lt;STRONG&gt;&lt;I&gt;&amp;nbsp;&lt;/I&gt;&lt;/STRONG&gt;&lt;I&gt;if it helps you can mark more that one reply as accepted solution.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Eshwar&lt;/I&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 12:46:44 GMT</pubDate>
      <guid>https://www.servicenow.com/community/devops-forum/how-to-convert-inputted-arithmetic-numbers-to-chinese-numerals/m-p/3055699#M3194</guid>
      <dc:creator>Eshwar Reddy</dc:creator>
      <dc:date>2024-09-25T12:46:44Z</dc:date>
    </item>
  </channel>
</rss>

