Not able to print the rupee symbol on eclipse console

921 views
Skip to first unread message

Santosh Gupta

unread,
Oct 17, 2016, 6:10:45 AM10/17/16
to webd...@googlegroups.com
Hi all,

I am facing an issue.I am just getting price of any product with getText() having the currency in rupee(₹) but instead of rupee symbol it is showing (?) in eclipse console.Can anyone help me in this?


⇜Krishnan Mahadevan⇝

unread,
Oct 17, 2016, 6:41:39 AM10/17/16
to webdriver
Have you made sure that your eclipse console can display UTF-8 characters ?



Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/

On Mon, Oct 17, 2016 at 3:34 PM, Santosh Gupta <sgsantosh...@gmail.com> wrote:
Hi all,

I am facing an issue.I am just getting price of any product with getText() having the currency in rupee(₹) but instead of rupee symbol it is showing (?) in eclipse console.Can anyone help me in this?


--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webdriver+unsubscribe@googlegroups.com.
To post to this group, send email to webd...@googlegroups.com.
Visit this group at https://groups.google.com/group/webdriver.
For more options, visit https://groups.google.com/d/optout.

Santosh Gupta

unread,
Oct 17, 2016, 7:11:29 AM10/17/16
to webd...@googlegroups.com
I performed the same steps again now its working fine.Now i want to print that symbol in log file can u help me out for this.

Thanks in advance

On Mon, Oct 17, 2016 at 4:21 PM, Santosh Gupta <sgsantosh...@gmail.com> wrote:
I tried this but not working for rupee
--

with regards
Santosh Gupta
(9953797743)



--

with regards
Santosh Gupta
(9953797743)

darrell grainger

unread,
Oct 17, 2016, 12:35:47 PM10/17/16
to webdriver
Santosh,

Computers are really just a bunch of ones and zeros. How we display those binary numbers is a convention. For example, if I have the binary value 01000001 I can display this as a decimal number. It would then display as "65". I could display it has an US-ASCII character. It would then display as "A". This is COMPLETELY dependent on the tool I use to display the binary value. Selenium will get the value. This just works. Getting it to display as you want it requires you to configure the place you are trying to display it. This has nothing to do with Selenium.

For example, if I compile my web page to use UTF-8 and the web page has the binary value 0010000010101000 then it will display as a Rupee symbol (₨) on the web page. If I configure my editor to use US-ASCII it will display as SPACE and UNKNOWN (most editors will display a question mark for UNKNOWN). The binary value hasn't changed. Just how I render it on the screen has changed.

You really need to figure out how the web page is configured to display and configure all your other tools to display the same way.

Darrell

P.S. the rupee symbol in your original message is binary value 1000001011100010000010101001 and it is display as UTF-8 (check the View menu on your browser), which is different from what I expected for a rupee symbol.

On Monday, 17 October 2016 07:11:29 UTC-4, Santosh Gupta wrote:
I performed the same steps again now its working fine.Now i want to print that symbol in log file can u help me out for this.

Thanks in advance
On Mon, Oct 17, 2016 at 4:21 PM, Santosh Gupta <sgsantosh...@gmail.com> wrote:
I tried this but not working for rupee
On Mon, Oct 17, 2016 at 4:11 PM, ⇜Krishnan Mahadevan⇝ <krishnan.ma...@gmail.com> wrote:
Have you made sure that your eclipse console can display UTF-8 characters ?



Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/

On Mon, Oct 17, 2016 at 3:34 PM, Santosh Gupta <sgsantosh...@gmail.com> wrote:
Hi all,

I am facing an issue.I am just getting price of any product with getText() having the currency in rupee(₹) but instead of rupee symbol it is showing (?) in eclipse console.Can anyone help me in this?


--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webdriver+...@googlegroups.com.

To post to this group, send email to webd...@googlegroups.com.
Visit this group at https://groups.google.com/group/webdriver.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webdriver+...@googlegroups.com.

To post to this group, send email to webd...@googlegroups.com.
Visit this group at https://groups.google.com/group/webdriver.
For more options, visit https://groups.google.com/d/optout.
--

with regards
Santosh Gupta
(9953797743)

Santosh Gupta

unread,
Oct 18, 2016, 8:56:25 AM10/18/16
to webd...@googlegroups.com
I tried this but not working for rupee
On Mon, Oct 17, 2016 at 4:11 PM, ⇜Krishnan Mahadevan⇝ <krishnan.ma...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages