RJMetrics/rjm-php-utils — pull request #6 by bengarvey (2013-10-23 20:56:50+00:00)
Title: Revise jsonreplaces

Related to this ticket:
https://trello.com/c/fsuJOEDA/1678-club-shop-s-r-o-group-by-continuously-thinks

This removes the static designation from $jsonReplaces and moves it to the top of the function, allowing us to use the chr() function to match unusual characters.

I've written a unit test for special characters and it passes, but it's in the RJMetrics repo.

##### Unit Test
Check out this branch and move RJMUtilityFunctions.php to the RJMetrics repo
checkout branch aje_test_special_chars in RJMetrics and run
`phpunit --bootstrap=test/bootstrap.php test/util/AlternateJsonEncodeTest.php`

##### Functional Test
While you still have this copy of RJMUtilityFunctions.php in your RJMetrics repo, load dashboards, the chart builder, and group by various categories to test alternate_json_encode.