
viktorianer
High Performance PostgreSQL for Rails: Contains non-printing unicode characters
I found it challenging to use code examples from this book, particularly because the queries containing non-printing Unicode characters. E.g.,
epub
book:
rideshare_development=> REINDEX INDEX index_users_on_email;
ERROR: syntax error at or near "INDEX"
LINE 1: REINDEX INDEX index_users_on_email;
^
Time: 0.917 ms
pdf
book:
rideshare_development=> REINDEX INDEX index_users_on_email;
REINDEX
Time: 5906.267 ms (00:05.906)
Is there any way, to create epub
format book, with printing Unicode characters only?
Thanks a lot!
Viktor
Marked As Solved

viktorianer
Oh, I just realized that you can click on each example to download the code . Did I miss this feature because I’ve been using the book without internet access? Or is there an explanation for this in the book that I might have overlooked?
Anyway, downloading the examples does help solve this problem, as I will go back to the code on my notebook eventually.
Initially, I was looking for the files in the repository itself and was surprised not to find those examples there. It was a bit frustrating not to find those files directly. Now, with the link, I understand why they are not included.
But isn’t the book repository the best place for those code examples?
Also Liked

viktorianer
Hi Andrew,
Thank you for your response and suggestion.
I understand that the recommended approach is to download the code sample directory separately and work with the text files from there.
However, I’m actually using the epub format because I primarily use a Kindle for reading. The book seems to be generally written with the approach of going to the posts and code on the web, which doesn’t work well for me as I often read while on the go with my Kindle and don’t have access to those resources.
My current approach is to read as much as possible in the book and take notes along the way. When I’m back at my notebook, I then start again with the examples and links to posts.
It’s not the best method, but it works to some extent. Ideally, I would prefer to have the examples directly in the book for convenience.
I would appreciate any further suggestions or adjustments that could make the code examples more accessible within the epub format.
Thank you again for your help and understanding.
Best regards,
Viktor
Popular Prag Prog topics










Other popular topics










Latest in PragProg
Latest (all)
Categories:
Popular Portals
- /elixir
- /rust
- /wasm
- /ruby
- /erlang
- /phoenix
- /keyboards
- /js
- /rails
- /python
- /security
- /go
- /swift
- /vim
- /clojure
- /java
- /haskell
- /emacs
- /svelte
- /onivim
- /typescript
- /crystal
- /c-plus-plus
- /tailwind
- /kotlin
- /gleam
- /react
- /flutter
- /elm
- /ocaml
- /vscode
- /opensuse
- /ash
- /centos
- /php
- /deepseek
- /zig
- /scala
- /html
- /debian
- /nixos
- /lisp
- /agda
- /textmate
- /sublime-text
- /react-native
- /kubuntu
- /arch-linux
- /ubuntu
- /revery
- /manjaro
- /django
- /spring
- /diversity
- /nodejs
- /lua
- /julia
- /slackware
- /c
- /neovim