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 7600633
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T22:57:30+00:00 2026-05-30T22:57:30+00:00

Check out the weird behavior I’m getting with two strings. I suspect of course,

  • 0

Check out the weird behavior I’m getting with two strings. I suspect of course, that the space isn’t really a space. How do I investigate this?

enter image description here

  • 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-05-30T22:57:31+00:00Added an answer on May 30, 2026 at 10:57 pm

    Try something like:

    1.9.2p290> "foo bar".bytes.to_a # the space is a nonbreaking-space
     => [102, 111, 111, 194, 160, 98, 97, 114] 
    

    or if hex codes for characters are your thing:

    1.9.2p290> "foo bar".chars.map { |c| c.unpack "H*" } # same nonbreaking-space
     => [["66"], ["6f"], ["6f"], ["c2a0"], ["62"], ["61"], ["72"]] 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Please check out: http://gherkin.co.nz/refresh/ and click on the purple box that says 'Membership chest'
Brand new to android and facing a weird problem.Check out the code below FirstActivity.java:
I have an extremely weird error that I cannot figure out. float distance =
This is weird. Check this out: for( var i = 0; i <= videos.length;
Just stumbled upon this weird bug with php's DateTime object... Check this out: <?php
Check out this test: [TestFixture] public class Quick_test { [Test] public void Test() {
Update: Check out this follow-up question: Gem Update on Windows - is it broken?
First check out this code. I seems like it should work for me, but
Please check out the following func and its output void main() { Distance d1;
Can check out here alt text http://51hired.com/static/problem.bmp

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.