Code Monkey home page Code Monkey logo

javascriptbase64's People

Watchers

James Cloos avatar

javascriptbase64's Issues

Not compatible with the PHP base64 encode

What steps will reproduce the problem?
1. Encode text with this javascript
2. Encode same text with the PHP base64
3. It's different

Example text which gives this bug:

"< ?php
}

if ($teku6ta_stranica < $broi_stranici - 1) {
? >
<a href="< ?php echo 
mybs."admin-mnenia/".$just_added_id."/".($teku6ta_stranica+1)."/"; ? 
>">Следваща</a>
< ?php
}

? >"

What is the expected output? What do you see instead?

PCA/cGhwCn0KCmlmICgkdGVrdTZ0YV9zdHJhbmljYSA8ICRicm9pX3N0cmFuaWNpIC0gMSkgewo/ID4K
PGEgaHJlZj0iPCA/cGhwIGVjaG8gbXlicy4iYWRtaW4tbW5lbmlhLyIuJGp1c3RfYWRkZWRfaWQuIi8i
LigkdGVrdTZ0YV9zdHJhbmljYSsxKS4iLyI7ID8gPiI+0KHQu9C10LTQstCw0YnQsDwvYT4KPCA/cGhw
Cn0KCj8gPg==



PCA/cGhwDQp9DQoNCmlmICgkdGVrdTZ0YV9zdHJhbmljYSA8ICRicm9pX3N0cmFuaWNpIC0gMSkgew0K
PyA+DQo8YSBocmVmPSI8ID9waHAgZWNobyBteWJzLiJhZG1pbi1tbmVuaWEvIi4kanVzdF9hZGRlZF9p
ZC4iLyIuKCR0ZWt1NnRhX3N0cmFuaWNhKzEpLiIvIjsgPyA+Ij7R6+Xk4uD54DwvYT4NCjwgP3BocA0K
fQ0KDQo/ID4=


What version of the product are you using? On what operating system?

Aug 2008, WinXP, Firefox 3.x

Please provide any additional information below.

Tried different page encodings, UTF 8, cp1251, western.. same result.

Well, thats it, thank you!


Original issue reported on code.google.com by [email protected] on 2 Jul 2010 at 3:38

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.