Search code examples
yahooyahoo-pipes

How can I add a single space in Yahoo Pipes, that will not be removed?


I'm learning to create a Twitter bot using Yahoo pipes, and here's my pipe. The pipe is working, but I have a problem when I run it. This is a sample of the result:

Follow kami untuk mendapatkan cerita renungan kristen RT @InggrianiVeeTiap langkahku di atur oleh Tuhan:)

@InggrianiVeeTiap is wrong, the correct username is @InggrianiVee, and Tiap is a part of the tweet.

I tried adding a space between them, which appears to be working, but it is removed when I save my pipe in Yahoo and try to run it.

How do I keep the space?


Solution

  • The underlying problem is that you have a string builder with a space. The space is working as expected while developing, but is removed (or trimmed) after you save the pipe.

    To escape the space so it will not be removed, you can use   instead of a space (32 is the decimal ASCII code for a space).

    Working example: http://pipes.yahoo.com/pipes/pipe.info?_id=9ad4bc3c1a7a6f2cb7823323f3e4323a